Record Class QueueResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.vcapi.model.QueueResponse
-
Constructor Summary
ConstructorsConstructorDescriptionQueueResponse(int prio, int regular, OffsetDateTime time) Creates an instance of aQueueResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intprio()Returns the value of thepriorecord component.intregular()Returns the value of theregularrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueResponse
Creates an instance of aQueueResponserecord class.- Parameters:
prio- the value for thepriorecord componentregular- the value for theregularrecord componenttime- the value for thetimerecord 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. -
prio
public int prio()Returns the value of thepriorecord component.- Returns:
- the value of the
priorecord component
-
regular
public int regular()Returns the value of theregularrecord component.- Returns:
- the value of the
regularrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-