java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
com.riadalabs.jira.plugins.insight.services.model.icontheme.ImmutableIconTheme

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIconTheme extends IconTheme
Immutable implementation of IconTheme.

Use the builder to create immutable instances: ImmutableIconTheme.builder().

  • Method Details

    • color1

      public String color1()
      Specified by:
      color1 in class IconTheme
      Returns:
      The value of the color1 attribute
    • color2

      public String color2()
      Specified by:
      color2 in class IconTheme
      Returns:
      The value of the color2 attribute
    • color3

      public String color3()
      Specified by:
      color3 in class IconTheme
      Returns:
      The value of the color3 attribute
    • withColor1

      public final ImmutableIconTheme withColor1(String value)
      Copy the current immutable object by setting a value for the color1 attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for color1
      Returns:
      A modified copy of the this object
    • withColor2

      public final ImmutableIconTheme withColor2(String value)
      Copy the current immutable object by setting a value for the color2 attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for color2
      Returns:
      A modified copy of the this object
    • withColor3

      public final ImmutableIconTheme withColor3(String value)
      Copy the current immutable object by setting a value for the color3 attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for color3
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableIconTheme that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: color1, color2, color3.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value IconTheme with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableIconTheme copyOf(IconTheme instance)
      Creates an immutable copy of a IconTheme value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable IconTheme instance
    • builder

      public static ImmutableIconTheme.Builder builder()
      Creates a builder for ImmutableIconTheme.
       ImmutableIconTheme.builder()
          .setColor1(String) // required color1
          .setColor2(String) // required color2
          .setColor3(String) // required color3
          .build();
       
      Returns:
      A new ImmutableIconTheme builder