Record Class IntegerPriorityQueueNode<E>
java.lang.Object
java.lang.Record
org.cicirello.ds.IntegerPriorityQueueNode<E>
- Type Parameters:
E- The type of element contained by the node.- Record Components:
element- the element contained in the node.priority- the priority of the element of the priority queue.
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerPriorityQueueNode(E element, int priority) Creates an instance of aIntegerPriorityQueueNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntegerPriorityQueueNode
-
-
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. -
element
-
priority
-