Enum Class KeyPath.PathComparator

java.lang.Object
java.lang.Enum<KeyPath.PathComparator>
ghidra.trace.model.target.path.KeyPath.PathComparator
All Implemented Interfaces:
Serializable, Comparable<KeyPath.PathComparator>, Constable, Comparator<KeyPath>
Enclosing class:
KeyPath

public static enum KeyPath.PathComparator extends Enum<KeyPath.PathComparator> implements Comparator<KeyPath>
Comparators for paths
  • Enum Constant Details

    • KEYED

      public static final KeyPath.PathComparator KEYED
      Sort paths by key, prioritizing the left-most, i.e., top-most, keys.

      If one path is a prefix to the other, the prefix is "less than" the other.

    • LONGEST_FIRST

      public static final KeyPath.PathComparator LONGEST_FIRST
      Sort paths by length, longest first, then as in KEYED.
  • Method Details

    • values

      public static KeyPath.PathComparator[] 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 KeyPath.PathComparator 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