Class CommandLine.Help.SortByShortestOptionNameAlphabetically
- java.lang.Object
-
- org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.SortByShortestOptionNameAlphabetically
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.reflect.Field>
- Direct Known Subclasses:
CommandLine.Help.SortByOptionArityAndNameAlphabetically
- Enclosing class:
- CommandLine.Help
static class CommandLine.Help.SortByShortestOptionNameAlphabetically extends java.lang.Object implements java.util.Comparator<java.lang.reflect.Field>
SortsOption
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 Constructor Description SortByShortestOptionNameAlphabetically()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.reflect.Field f1, java.lang.reflect.Field f2)
-