Record Class MusicService.QueuedTrack
java.lang.Object
java.lang.Record
dev.despical.musicbot.audio.MusicService.QueuedTrack
- Enclosing class:
MusicService
-
Constructor Summary
ConstructorsConstructorDescriptionQueuedTrack(String title, String url, String requestedBy, boolean loopForever, long duration, boolean live) Creates an instance of aQueuedTrackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlive()Returns the value of theliverecord component.booleanReturns the value of theloopForeverrecord component.Returns the value of therequestedByrecord 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
-
QueuedTrack
public QueuedTrack(String title, String url, String requestedBy, boolean loopForever, long duration, boolean live) Creates an instance of aQueuedTrackrecord class.- Parameters:
title- the value for thetitlerecord componenturl- the value for theurlrecord componentrequestedBy- the value for therequestedByrecord componentloopForever- the value for theloopForeverrecord componentduration- the value for thedurationrecord componentlive- the value for theliverecord 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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
requestedBy
Returns the value of therequestedByrecord component.- Returns:
- the value of the
requestedByrecord component
-
loopForever
public boolean loopForever()Returns the value of theloopForeverrecord component.- Returns:
- the value of the
loopForeverrecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
live
public boolean live()Returns the value of theliverecord component.- Returns:
- the value of the
liverecord component
-