Record Class IndexedPriorityQueue.Prioritized<V>
java.lang.Object
java.lang.Record
io.trino.execution.resourcegroups.IndexedPriorityQueue.Prioritized<V>
- Enclosing class:
IndexedPriorityQueue<E>
-
Constructor Summary
ConstructorsConstructorDescriptionPrioritized(V value, long priority) Creates an instance of aPrioritizedrecord 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.longpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Prioritized
Creates an instance of aPrioritizedrecord class.- Parameters:
value- the value for thevaluerecord componentpriority- the value for thepriorityrecord 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. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
priority
public long priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-