Record Class LyricWord
java.lang.Object
java.lang.Record
lol.trq.orpheus.lyrics.LyricWord
- Record Components:
startMillis- when it startstext- the piece, including any trailing space
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thestartMillisrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LyricWord
Creates an instance of aLyricWordrecord class.- Parameters:
startMillis- the value for thestartMillisrecord componenttext- the value for thetextrecord 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. -
startMillis
public long startMillis()Returns the value of thestartMillisrecord component.- Returns:
- the value of the
startMillisrecord component
-
text
-