Package org.restlet.engine.util
Class AlphabeticalComparator
java.lang.Object
org.restlet.engine.util.AlphabeticalComparator
- All Implemented Interfaces:
Serializable,Comparator<Reference>
- Direct Known Subclasses:
AlphaNumericComparator
Allows to sort the list of references set by the resource.
- Author:
- Jerome Louvel
- 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
-
AlphabeticalComparator
public AlphabeticalComparator()
-
-
Method Details
-
compare
Compares two references.- Specified by:
comparein interfaceComparator<Reference>- Parameters:
ref0- The first reference.ref1- The second reference.- Returns:
- The comparison result.
- See Also:
-
compare
Compares two strings.- Parameters:
str0- The first string.str1- The second string.- Returns:
- The comparison result.
- See Also:
-