Class RequestUtils.ShortestStringLastComparator
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.request.RequestUtils.ShortestStringLastComparator
-
- All Implemented Interfaces:
Serializable,Comparator<String>
- Enclosing class:
- RequestUtils
public static class RequestUtils.ShortestStringLastComparator extends Object implements Comparator<String>, Serializable
Comparator which puts the longest strings first and the shortest last- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ShortestStringLastComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(String o1, String o2)-
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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
compare
public int compare(String o1, String o2)
- Specified by:
comparein interfaceComparator<String>
-
-