org.sakaiproject.entitybroker.util.request
Class RequestUtils.ShortestStringLastComparator

java.lang.Object
  extended by 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
static long serialVersionUID
           
 
Constructor Summary
RequestUtils.ShortestStringLastComparator()
           
 
Method Summary
 int compare(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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

RequestUtils.ShortestStringLastComparator

public RequestUtils.ShortestStringLastComparator()
Method Detail

compare

public int compare(String o1,
                   String o2)
Specified by:
compare in interface Comparator<String>


Copyright © 2007-2012 CARET, University of Cambridge. All Rights Reserved.