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 logologoBytes- 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 -
Method Summary
Modifier and TypeMethodDescriptionaccent()Returns the value of theaccentrecord component.brand()Returns the value of thebrandrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegraphColorsrecord component.Returns the value of thegraphRulesrecord component.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of thelogoBytesrecord component.summary()A readable list of what the file sets, for the user to check before it is used.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
summary
A readable list of what the file sets, for the user to check before it is used. -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
accent
Returns the value of theaccentrecord component.- Returns:
- the value of the
accentrecord component
-
brand
Returns the value of thebrandrecord component.- Returns:
- the value of the
brandrecord component
-
graphColors
Returns the value of thegraphColorsrecord component.- Returns:
- the value of the
graphColorsrecord component
-
graphRules
Returns the value of thegraphRulesrecord component.- Returns:
- the value of the
graphRulesrecord component
-
logoBytes
public byte[] logoBytes()Returns the value of thelogoBytesrecord component.- Returns:
- the value of the
logoBytesrecord component
-