Record Class MusicService.QueueResult
java.lang.Object
java.lang.Record
dev.despical.musicbot.audio.MusicService.QueueResult
- Enclosing class:
MusicService
-
Constructor Summary
ConstructorsConstructorDescriptionQueueResult(int queuedTracks, String displayTitle, String joinedChannelName, boolean loopForever) Creates an instance of aQueueResultrecord 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 thejoinedChannelNamerecord component.booleanReturns the value of theloopForeverrecord component.intReturns the value of thequeuedTracksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueResult
public QueueResult(int queuedTracks, String displayTitle, String joinedChannelName, boolean loopForever) Creates an instance of aQueueResultrecord class.- Parameters:
queuedTracks- the value for thequeuedTracksrecord componentdisplayTitle- the value for thedisplayTitlerecord componentjoinedChannelName- the value for thejoinedChannelNamerecord componentloopForever- the value for theloopForeverrecord 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. -
queuedTracks
public int queuedTracks()Returns the value of thequeuedTracksrecord component.- Returns:
- the value of the
queuedTracksrecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
joinedChannelName
Returns the value of thejoinedChannelNamerecord component.- Returns:
- the value of the
joinedChannelNamerecord component
-
loopForever
public boolean loopForever()Returns the value of theloopForeverrecord component.- Returns:
- the value of the
loopForeverrecord component
-