Package com.reign.api.genius
Record Class GeniusSong
java.lang.Object
java.lang.Record
com.reign.api.genius.GeniusSong
- 
Constructor SummaryConstructorsConstructorDescriptionGeniusSong(String url, String title, String artist, String lyrics) Creates an instance of aGeniusSongrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionartist()Returns the value of theartistrecord 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.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
- 
Constructor Details- 
GeniusSongCreates an instance of aGeniusSongrecord class.- Parameters:
- url- the value for the- urlrecord component
- title- the value for the- titlerecord component
- artist- the value for the- artistrecord component
- lyrics- the value for the- lyricsrecord component
 
 
- 
- 
Method Details- 
urlReturns the value of theurlrecord component.- Returns:
- the value of the urlrecord component
 
- 
titleReturns the value of thetitlerecord component.- Returns:
- the value of the titlerecord component
 
- 
artistReturns the value of theartistrecord component.- Returns:
- the value of the artistrecord component
 
- 
lyricsReturns the value of thelyricsrecord component.- Returns:
- the value of the lyricsrecord component
 
- 
lyricSegments
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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. All components in this record class are compared withObjects::equals(Object,Object).
 
-