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.
  • Konstruktordetails

    • WrapperComparator

      WrapperComparator()
  • Methodendetails

    • compare

      public int compare(WrapperElement<T> element1, WrapperElement<T> element2)
      Compares two WrapperElement objects based on their priorities.
      Angegeben von:
      compare in Schnittstelle Comparator<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.