Record Class TextBackgroundValues

java.lang.Object
java.lang.Record
io.meeds.layout.model.TextBackgroundValues

public record TextBackgroundValues(String color, String effect, String padding, String radius, String image, boolean newImage, String size, String repeat, String position) extends Record
What a text background block that is on writes: the colour, the effect, the padding and the radius, then the image and its options; a null image clears the stored one, a stored image repeated keeps its stored options, a new image carries the options the call gave
  • Constructor Details

    • TextBackgroundValues

      public TextBackgroundValues(String color, String effect, String padding, String radius, String image, boolean newImage, String size, String repeat, String position)
      Creates an instance of a TextBackgroundValues record class.
      Parameters:
      color - the value for the color record component
      effect - the value for the effect record component
      padding - the value for the padding record component
      radius - the value for the radius record component
      image - the value for the image record component
      newImage - the value for the newImage record component
      size - the value for the size record component
      repeat - the value for the repeat record component
      position - the value for the position record component
  • Method Details

    • off

      public static TextBackgroundValues off()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • color

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • effect

      public String effect()
      Returns the value of the effect record component.
      Returns:
      the value of the effect record component
    • padding

      public String padding()
      Returns the value of the padding record component.
      Returns:
      the value of the padding record component
    • radius

      public String radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • image

      public String image()
      Returns the value of the image record component.
      Returns:
      the value of the image record component
    • newImage

      public boolean newImage()
      Returns the value of the newImage record component.
      Returns:
      the value of the newImage record component
    • size

      public String size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • repeat

      public String repeat()
      Returns the value of the repeat record component.
      Returns:
      the value of the repeat record component
    • position

      public String position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component