Record Class LyricLine
java.lang.Object
java.lang.Record
lol.trq.orpheus.lyrics.LyricLine
- Record Components:
startMillis- when the line starts, or -1 in unsynced lyricsendMillis- when the next line starts, or -1 when unknowntext- the line; empty for an instrumental gapwords- timed pieces of the line, empty unless the lyrics are word-syncedtranslation- a translation of the line, or emptyromanization- a romanized form of the line, or empty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theendMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theromanizationrecord component.longReturns the value of thestartMillisrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationrecord component.words()Returns the value of thewordsrecord component.
-
Constructor Details
-
LyricLine
public LyricLine(long startMillis, long endMillis, String text, List<LyricWord> words, String translation, String romanization) Creates an instance of aLyricLinerecord class.- Parameters:
startMillis- the value for thestartMillisrecord componentendMillis- the value for theendMillisrecord componenttext- the value for thetextrecord componentwords- the value for thewordsrecord componenttranslation- the value for thetranslationrecord componentromanization- the value for theromanizationrecord 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
-
endMillis
-
text
-
words
-
translation
Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
romanization
Returns the value of theromanizationrecord component.- Returns:
- the value of the
romanizationrecord component
-