|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.StringLengthComparator
public class StringLengthComparator
A simple comparator that compares to String lengths. Shortest gets first.
Constructor Summary | |
---|---|
StringLengthComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.String name1,
java.lang.String name2)
|
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 |
Constructor Detail |
---|
public StringLengthComparator()
Method Detail |
---|
public int compare(java.lang.String name1, java.lang.String name2)
compare
in interface java.util.Comparator<java.lang.String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |