Interface PartialOrder.PartialComparable

All Known Implementing Classes:
Advice, BcelAccessForInlineMunger, BcelCflowCounterFieldAdder, BcelCflowStackFieldAdder, BcelPerClauseAspectAdder, BcelTypeMunger, Checker, ConcreteTypeMunger, ShadowMunger, TemporaryTypeMunger
Enclosing class:
PartialOrder

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

    Modifier and Type
    Method
    Description
    int
    compareTo​(Object other)
     
    int
    This method can provide a deterministic ordering for elements that are strictly not comparable.
  • Method Details

    • compareTo

      int compareTo(Object other)
      Returns:
      • +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.