Record Class BrandingFile.Content

java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.config.BrandingFile.Content
Record Components:
brand - enabled, with the logo name when there is a logo
logoBytes - the image of the logo, or null
Enclosing class:
BrandingFile

public static record BrandingFile.Content(String accent, Branding brand, String graphColors, String graphRules, byte[] logoBytes) extends Record
What a file holds, checked.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Content(String accent, Branding brand, String graphColors, String graphRules, byte[] logoBytes)
    Creates an instance of a Content record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the accent record component.
    Returns the value of the brand record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the graphColors record component.
    Returns the value of the graphRules record component.
    final int
    Returns a hash code value for this object.
    byte[]
    Returns the value of the logoBytes record component.
    A readable list of what the file sets, for the user to check before it is used.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Content

      public Content(String accent, Branding brand, String graphColors, String graphRules, byte[] logoBytes)
      Creates an instance of a Content record class.
      Parameters:
      accent - the value for the accent record component
      brand - the value for the brand record component
      graphColors - the value for the graphColors record component
      graphRules - the value for the graphRules record component
      logoBytes - the value for the logoBytes record component
  • Method Details

    • summary

      public String summary()
      A readable list of what the file sets, for the user to check before it is used.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • accent

      public String accent()
      Returns the value of the accent record component.
      Returns:
      the value of the accent record component
    • brand

      public Branding brand()
      Returns the value of the brand record component.
      Returns:
      the value of the brand record component
    • graphColors

      public String graphColors()
      Returns the value of the graphColors record component.
      Returns:
      the value of the graphColors record component
    • graphRules

      public String graphRules()
      Returns the value of the graphRules record component.
      Returns:
      the value of the graphRules record component
    • logoBytes

      public byte[] logoBytes()
      Returns the value of the logoBytes record component.
      Returns:
      the value of the logoBytes record component