Interface AssetDimensions


public interface AssetDimensions
AssetDimensions
Example to create an instance using the builder pattern

     AssetDimensions assetDimensions = AssetDimensions.builder()
             .w(1)
             .h(1)
             .build()
 
  • Method Details

    • getW

      @NotNull @NotNull Integer getW()
      Returns:
      w
    • getH

      @NotNull @NotNull Integer getH()
      Returns:
      h
    • setW

      void setW(Integer w)
      set w
      Parameters:
      w - value to be set
    • setH

      void setH(Integer h)
      set h
      Parameters:
      h - value to be set
    • of

      static AssetDimensions of()
      factory method
      Returns:
      instance of AssetDimensions
    • of

      static AssetDimensions of(AssetDimensions template)
      factory method to create a shallow copy AssetDimensions
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static AssetDimensions deepCopy(@Nullable AssetDimensions template)
      factory method to create a deep copy of AssetDimensions
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static AssetDimensionsBuilder builder()
      builder factory method for AssetDimensions
      Returns:
      builder
    • builder

      static AssetDimensionsBuilder builder(AssetDimensions template)
      create builder for AssetDimensions instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssetDimensions

      default <T> T withAssetDimensions(Function<AssetDimensions,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<AssetDimensions> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference