Interface Image


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

     Image image = Image.builder()
             .url("{url}")
             .dimensions(dimensionsBuilder -> dimensionsBuilder)
             .label("{label}")
             .build()
 
  • Method Details

    • getUrl

      @NotNull @NotNull String getUrl()
      Returns:
      url
    • getDimensions

      @NotNull @Valid @NotNull @Valid ImageDimensions getDimensions()
      Returns:
      dimensions
    • getLabel

      @NotNull @NotNull String getLabel()
      Returns:
      label
    • setUrl

      void setUrl(String url)
      set url
      Parameters:
      url - value to be set
    • setDimensions

      void setDimensions(ImageDimensions dimensions)
      set dimensions
      Parameters:
      dimensions - value to be set
    • setLabel

      void setLabel(String label)
      set label
      Parameters:
      label - value to be set
    • of

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

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

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

      static ImageBuilder builder()
      builder factory method for Image
      Returns:
      builder
    • builder

      static ImageBuilder builder(Image template)
      create builder for Image instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withImage

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