Interface ImageDimensions


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

     ImageDimensions imageDimensions = ImageDimensions.builder()
             .w(0.3)
             .h(0.3)
             .build()
 
  • Method Details

    • getW

      @NotNull @NotNull Integer getW()

      Width of the image.

      Returns:
      w
    • getH

      @NotNull @NotNull Integer getH()

      Height of the image.

      Returns:
      h
    • setW

      void setW(Integer w)

      Width of the image.

      Parameters:
      w - value to be set
    • setH

      void setH(Integer h)

      Height of the image.

      Parameters:
      h - value to be set
    • of

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

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

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

      static ImageDimensionsBuilder builder()
      builder factory method for ImageDimensions
      Returns:
      builder
    • builder

      static ImageDimensionsBuilder builder(ImageDimensions template)
      create builder for ImageDimensions instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withImageDimensions

      default <T> T withImageDimensions(Function<ImageDimensions,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<ImageDimensions> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference