Record Class SpotifyService.SpotifyTrackDescriptor
java.lang.Object
java.lang.Record
dev.despical.musicbot.spotify.SpotifyService.SpotifyTrackDescriptor
- Enclosing class:
SpotifyService
-
Constructor Summary
ConstructorsConstructorDescriptionSpotifyTrackDescriptor(String playQuery, String displayTitle, String sourceUrl) Creates an instance of aSpotifyTrackDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayTitlerecord 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 theplayQueryrecord component.Returns the value of thesourceUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpotifyTrackDescriptor
Creates an instance of aSpotifyTrackDescriptorrecord class.- Parameters:
playQuery- the value for theplayQueryrecord componentdisplayTitle- the value for thedisplayTitlerecord componentsourceUrl- the value for thesourceUrlrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
playQuery
Returns the value of theplayQueryrecord component.- Returns:
- the value of the
playQueryrecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
sourceUrl
Returns the value of thesourceUrlrecord component.- Returns:
- the value of the
sourceUrlrecord component
-