Interface AssetDimensions


public interface AssetDimensions

The width and height of the Asset Source.


Example to create an instance using the builder pattern

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

    • getW

      @NotNull @NotNull Integer getW()

      The width of the asset source.

      Returns:
      w
    • getH

      @NotNull @NotNull Integer getH()

      The height of the asset source.

      Returns:
      h
    • setW

      void setW(Integer w)

      The width of the asset source.

      Parameters:
      w - value to be set
    • setH

      void setH(Integer h)

      The height of the asset source.

      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