public static class DirectoryProperty.PropertyComparator extends Object implements Comparator<Property>
Constructor and Description |
---|
PropertyComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Property o1,
Property o2)
compare method.
|
boolean |
equals(Object o)
Object equality, implemented as object identity
|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public boolean equals(Object o)
equals
in interface Comparator<Property>
equals
in class Object
o
- Object we're being compared topublic int compare(Property o1, Property o2)
compare
in interface Comparator<Property>
o1
- first object to compare, better be a Propertyo2
- second object to compare, better be a PropertyCopyright © 2020. All rights reserved.