Package picocli
Class CommandLine.Help.SortByOptionArityAndNameAlphabetically
java.lang.Object
picocli.CommandLine.Help.SortByShortestOptionNameAlphabetically
picocli.CommandLine.Help.SortByOptionArityAndNameAlphabetically
- All Implemented Interfaces:
Comparator<CommandLine.Model.OptionSpec>
- Enclosing class:
CommandLine.Help
static class CommandLine.Help.SortByOptionArityAndNameAlphabetically
extends CommandLine.Help.SortByShortestOptionNameAlphabetically
Sorts
OptionSpec
instances by their max arity first, then their min arity, then delegates to super class.-
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
-
SortByOptionArityAndNameAlphabetically
SortByOptionArityAndNameAlphabetically()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<CommandLine.Model.OptionSpec>
- Overrides:
compare
in classCommandLine.Help.SortByShortestOptionNameAlphabetically
-