@Status(stage=PRODUCTION, unitTests=COMPLETE) public class FieldComparator extends Object implements Comparator<Field>
Fields
.Constructor and Description |
---|
FieldComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Field left,
Field right)
Compares the names of the supplied left and right fields.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Field left, Field right)
compare
in interface Comparator<Field>
left
- The field on the left to compare.right
- The field on the right to compare.Copyright © 2008–2018. All rights reserved.