Package org.apache.wiki.util.comparators
Class PrincipalComparator
java.lang.Object
org.apache.wiki.util.comparators.PrincipalComparator
- All Implemented Interfaces:
Serializable
,Comparator<Principal>
Comparator class for sorting objects of type Principal. Used for sorting arrays or collections of Principals.
- Since:
- 2.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PrincipalComparator
public PrincipalComparator()
-
-
Method Details
-
compare
Compares two Principal objects.- Specified by:
compare
in interfaceComparator<Principal>
- Parameters:
o1
- the first Principalo2
- the second Principal- Returns:
- the result of the comparison
- See Also:
-