Record Class AnimatedMascot.Style
java.lang.Object
java.lang.Record
wiiuu.ui.AnimatedMascot.Style
- Enclosing class:
AnimatedMascot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccent()Returns the value of theaccentrecord component.Returns the value of theaccentLabelrecord component.booleandark()Returns the value of thedarkrecord component.final booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Style
public Style(String label, String accentLabel, Color accent, boolean dark, BiFunction<Integer, Float, Font> font) Creates an instance of aStylerecord class.- Parameters:
label- the value for thelabelrecord componentaccentLabel- the value for theaccentLabelrecord componentaccent- the value for theaccentrecord componentdark- the value for thedarkrecord componentfont- the value for thefontrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
accentLabel
Returns the value of theaccentLabelrecord component.- Returns:
- the value of the
accentLabelrecord component
-
accent
Returns the value of theaccentrecord component.- Returns:
- the value of the
accentrecord component
-
dark
public boolean dark()Returns the value of thedarkrecord component.- Returns:
- the value of the
darkrecord component
-
font
Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-