Package picocli
Class CommandLine.Help.SortByShortestOptionNameAlphabetically
java.lang.Object
picocli.CommandLine.Help.SortByShortestOptionNameAlphabetically
- All Implemented Interfaces:
Comparator<CommandLine.Model.OptionSpec>
- Direct Known Subclasses:
CommandLine.Help.SortByOptionArityAndNameAlphabetically
- Enclosing class:
CommandLine.Help
static class CommandLine.Help.SortByShortestOptionNameAlphabetically
extends Object
implements Comparator<CommandLine.Model.OptionSpec>
Sorts
OptionSpec
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
Modifier and TypeMethodDescriptionint
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<CommandLine.Model.OptionSpec>
-