Class CommandLine.Help.ShortestFirst
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.ShortestFirst
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
- CommandLine.Help
Sorts short strings before longer strings.
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
ShortestFirst
ShortestFirst()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
sort
Sorts the specified array of Strings shortest-first and returns it.
-