Record Class QueueStatus
java.lang.Object
java.lang.Record
com.zenith.feature.queue.QueueStatus
-
Constructor Summary
ConstructorsConstructorDescriptionQueueStatus(int prio, int regular, long epochSecond) Creates an instance of aQueueStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theepochSecondrecord component.final 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.final StringtoString()Returns a string representation of this record class.inttotal()
-
Constructor Details
-
QueueStatus
public QueueStatus(int prio, int regular, long epochSecond) Creates an instance of aQueueStatusrecord class.- Parameters:
prio- the value for thepriorecord componentregular- the value for theregularrecord componentepochSecond- the value for theepochSecondrecord component
-
-
Method Details
-
total
public int total() -
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. All components in this record class 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
-
epochSecond
public long epochSecond()Returns the value of theepochSecondrecord component.- Returns:
- the value of the
epochSecondrecord component
-