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 TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SortByOptionArityAndNameAlphabetically
SortByOptionArityAndNameAlphabetically()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<CommandLine.Model.OptionSpec>- Overrides:
comparein classCommandLine.Help.SortByShortestOptionNameAlphabetically
-