Record Class LyricsMatch
java.lang.Object
java.lang.Record
lol.trq.orpheus.lyrics.LyricsMatch
- Record Components:
lyrics- the lyricsconfidence- 0 to 1; matches belowLyricsMatcher.ACCEPTare not shown
-
Constructor Summary
ConstructorsConstructorDescriptionLyricsMatch(Lyrics lyrics, double confidence) Creates an instance of aLyricsMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lyrics()Returns the value of thelyricsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LyricsMatch
Creates an instance of aLyricsMatchrecord class.- Parameters:
lyrics- the value for thelyricsrecord componentconfidence- the value for theconfidencerecord 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. -
lyrics
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-