Enum Class CompareResult

java.lang.Object
java.lang.Enum<CompareResult>
ghidra.trace.model.time.schedule.CompareResult
All Implemented Interfaces:
Serializable, Comparable<CompareResult>, Constable

public enum CompareResult extends Enum<CompareResult>
The result of a rich comparison of two schedules (or parts thereof)
  • Enum Constant Details

  • Field Details

    • compareTo

      public final int compareTo
  • Method Details

    • values

      public static CompareResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompareResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • related

      public static CompareResult related(int compareTo)
      Enrich the result of Comparable.compareTo(Object), given that the two are related
      Parameters:
      compareTo - the return from compareTo
      Returns:
      the rich result
    • unrelated

      public static CompareResult unrelated(int compareTo)
      Enrich the result of Comparable.compareTo(Object), given that the two are not related
      Parameters:
      compareTo - the return from compareTo
      Returns:
      the rich result
    • unrelated

      public static CompareResult unrelated(CompareResult result)
      Maintain sort order, but specify the two are not in fact related
      Parameters:
      result - the result of another (usually recursive) rich comparison
      Returns:
      the modified result