Package org.insa.graphs.algorithm.utils
Class PriorityQueueTest.MutableInteger
- java.lang.Object
-
- org.insa.graphs.algorithm.utils.PriorityQueueTest.MutableInteger
-
- All Implemented Interfaces:
java.lang.Comparable<PriorityQueueTest.MutableInteger>
- Enclosing class:
- PriorityQueueTest
protected static class PriorityQueueTest.MutableInteger extends java.lang.Object implements java.lang.Comparable<PriorityQueueTest.MutableInteger>
-
-
Constructor Summary
Constructors Constructor Description MutableInteger(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PriorityQueueTest.MutableInteger other)
int
get()
void
set(int value)
Update the integer value stored inside this MutableInteger.java.lang.String
toString()
-
-
-
Method Detail
-
get
public int get()
- Returns:
- The integer value stored inside this MutableInteger.
-
set
public void set(int value)
Update the integer value stored inside this MutableInteger.- Parameters:
value
- New value to set.
-
compareTo
public int compareTo(PriorityQueueTest.MutableInteger other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PriorityQueueTest.MutableInteger>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-