public class PrincipalComparator extends Object implements Comparator<Principal>, Serializable
Constructor and Description |
---|
PrincipalComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Principal o1,
Principal o2)
Compares two Principal objects.
|
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 PrincipalComparator()
public int compare(Principal o1, Principal o2)
compare
in interface Comparator<Principal>
o1
- the first Principalo2
- the second PrincipalComparator.compare(Object, Object)
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.