Package groovy.inspect
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MemberComparatorWithValue
public MemberComparatorWithValue()
-
-
Method Details
-
compare
Compares two property tuples using the underlying property metadata.- Specified by:
comparein interfaceComparator<Object>- Parameters:
a- the first tuple to compareb- 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
-