Record Class DisplayRules
java.lang.Object
java.lang.Record
lol.trq.orpheus.DisplayRules
- Record Components:
artworkUnmodified- the cover must be shown uncropped, without overlays or heavy roundingattribution- text that must be shown next to the data, or nulllinkBack- a link the display must offer, or null
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDisplayRules(boolean artworkUnmodified, String attribution, String linkBack) Creates an instance of aDisplayRulesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theartworkUnmodifiedrecord component.Returns the value of theattributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.linkBack()Returns the value of thelinkBackrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
DisplayRules
Creates an instance of aDisplayRulesrecord class.- Parameters:
artworkUnmodified- the value for theartworkUnmodifiedrecord componentattribution- the value for theattributionrecord componentlinkBack- the value for thelinkBackrecord 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. -
artworkUnmodified
public boolean artworkUnmodified()Returns the value of theartworkUnmodifiedrecord component.- Returns:
- the value of the
artworkUnmodifiedrecord component
-
attribution
Returns the value of theattributionrecord component.- Returns:
- the value of the
attributionrecord component
-
linkBack
-