Package graph
Klasse WrapperComparator<T extends VertexMarking>
java.lang.Object
graph.WrapperComparator<T>
- Typparameter:
T
- The type of vertex marking associated with the WrapperElement.
- Alle implementierten Schnittstellen:
Comparator<WrapperElement<T>>
class WrapperComparator<T extends VertexMarking>
extends Object
implements Comparator<WrapperElement<T>>
Comparator for comparing WrapperElement objects based on their priority.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
compare
(WrapperElement<T> element1, WrapperElement<T> element2) Compares two WrapperElement objects based on their priorities.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Konstruktordetails
-
WrapperComparator
WrapperComparator()
-
-
Methodendetails
-
compare
Compares two WrapperElement objects based on their priorities.- Angegeben von:
compare
in SchnittstelleComparator<T extends VertexMarking>
- Parameter:
element1
- The first WrapperElement to compare.element2
- The second WrapperElement to compare.- Gibt zurück:
- A negative integer, zero, or a positive integer as the first element's priority is less than, equal to, or greater than the second element's priority.
-