info.magnolia.cms.util
Class StringLengthComparator
java.lang.Object
info.magnolia.cms.util.StringLengthComparator
- All Implemented Interfaces:
- Comparator<String>
public class StringLengthComparator
- extends Object
- implements Comparator<String>
A simple comparator that compares to String lengths. Shortest gets first.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringLengthComparator
public StringLengthComparator()
compare
public int compare(String name1,
String name2)
- Specified by:
compare
in interface Comparator<String>
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.