Interface ImageDimensions


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

     ImageDimensions imageDimensions = ImageDimensions.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 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