Class Inspector.MemberComparatorWithValue

java.lang.Object
groovy.inspect.Inspector.MemberComparatorWithValue
All Implemented Interfaces:
Serializable, Comparator<Object>
Enclosing class:
Inspector

public static class Inspector.MemberComparatorWithValue extends Object implements Comparator<Object>, Serializable
Comparator for property tuples that include values.
See Also:
  • Constructor Details

    • MemberComparatorWithValue

      public MemberComparatorWithValue()
  • Method Details

    • compare

      public int compare(Object a, Object b)
      Compares two property tuples using the underlying property metadata.
      Specified by:
      compare in interface Comparator<Object>
      Parameters:
      a - the first tuple to compare
      b - the second tuple to compare
      Returns:
      a negative value, zero, or a positive value as the first tuple is less than, equal to, or greater than the second