Class CommandLine.Help.SortByShortestOptionNameAlphabetically
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.SortByShortestOptionNameAlphabetically
- All Implemented Interfaces:
Comparator<Field>
- Direct Known Subclasses:
CommandLine.Help.SortByOptionArityAndNameAlphabetically
- Enclosing class:
CommandLine.Help
static class CommandLine.Help.SortByShortestOptionNameAlphabetically
extends Object
implements Comparator<Field>
Sorts
Option
instances by their name in case-insensitive alphabetic order. If an Option has
multiple names, the shortest name is used for the sorting. Help options follow non-help options.-
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
-
SortByShortestOptionNameAlphabetically
SortByShortestOptionNameAlphabetically()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Field>
-