Package com.btcvelocity.api.queue
Record Class QueueEntryData
java.lang.Object
java.lang.Record
com.btcvelocity.api.queue.QueueEntryData
- Record Components:
uniqueId- the unique identifier of the playerusername- the username of the playerpriority- the queue priority (must be ≥ 0)fullBypass- whether the player can bypass full-server limitsqueueBypass- whether the player can bypass the queue entirely
public record QueueEntryData(@NotNull UUID uniqueId, @NotNull String username, int priority, boolean fullBypass, boolean queueBypass)
extends Record
Immutable data record used to create a new
QueueEntry.-
Constructor Summary
ConstructorsConstructorDescriptionQueueEntryData(@NotNull UUID uniqueId, @NotNull String username, int priority, boolean fullBypass, boolean queueBypass) Validates that the priority is non-negative. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullBypassrecord component.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.booleanReturns the value of thequeueBypassrecord component.final StringtoString()Returns a string representation of this record class.@NotNull UUIDuniqueId()Returns the value of theuniqueIdrecord component.@NotNull Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
uniqueId
Returns the value of theuniqueIdrecord component.- Returns:
- the value of the
uniqueIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
fullBypass
public boolean fullBypass()Returns the value of thefullBypassrecord component.- Returns:
- the value of the
fullBypassrecord component
-
queueBypass
public boolean queueBypass()Returns the value of thequeueBypassrecord component.- Returns:
- the value of the
queueBypassrecord component
-