Record Class MusicService.SkipResult
java.lang.Object
java.lang.Record
dev.despical.musicbot.audio.MusicService.SkipResult
- Enclosing class:
MusicService
-
Constructor Summary
ConstructorsConstructorDescriptionSkipResult(int skippedTracks, String currentTrackTitle) Creates an instance of aSkipResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentTrackTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theskippedTracksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkipResult
Creates an instance of aSkipResultrecord class.- Parameters:
skippedTracks- the value for theskippedTracksrecord componentcurrentTrackTitle- the value for thecurrentTrackTitlerecord 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. -
skippedTracks
public int skippedTracks()Returns the value of theskippedTracksrecord component.- Returns:
- the value of the
skippedTracksrecord component
-
currentTrackTitle
Returns the value of thecurrentTrackTitlerecord component.- Returns:
- the value of the
currentTrackTitlerecord component
-