Schnittstelle PartialOrder.PartialComparable

Alle bekannten Implementierungsklassen:
Advice, BcelAccessForInlineMunger, BcelCflowCounterFieldAdder, BcelCflowStackFieldAdder, BcelPerClauseAspectAdder, BcelTypeMunger, Checker, ConcreteTypeMunger, ShadowMunger, TemporaryTypeMunger
Umschließende Klasse:
PartialOrder

public static interface PartialOrder.PartialComparable
All classes that want to be part of a partial order must implement PartialOrder.PartialComparable.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
     
    int
    This method can provide a deterministic ordering for elements that are strictly not comparable.
  • Methodendetails

    • compareTo

      int compareTo(Object other)
      Gibt zurück:
      • +1 if this is greater than other
      • -1 if this is less than other
      • 0 if this is not comparable to other
      Note: returning 0 from this method doesn't mean the same thing as returning 0 from java.util.Comparable.compareTo()
    • fallbackCompareTo

      int fallbackCompareTo(Object other)
      This method can provide a deterministic ordering for elements that are strictly not comparable. If you have no need for this, this method can just return 0 whenever called.