Package picocli
Class CommandLine.Help.SortByOptionArityAndNameAlphabetically
- java.lang.Object
-
- picocli.CommandLine.Help.SortByShortestOptionNameAlphabetically
-
- picocli.CommandLine.Help.SortByOptionArityAndNameAlphabetically
-
- All Implemented Interfaces:
java.util.Comparator<CommandLine.Model.OptionSpec>
- Enclosing class:
- CommandLine.Help
static class CommandLine.Help.SortByOptionArityAndNameAlphabetically extends CommandLine.Help.SortByShortestOptionNameAlphabetically
SortsOptionSpec
instances by their max arity first, then their min arity, then delegates to super class.
-
-
Constructor Summary
Constructors Constructor Description SortByOptionArityAndNameAlphabetically()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CommandLine.Model.OptionSpec o1, CommandLine.Model.OptionSpec o2)
-
-
-
Method Detail
-
compare
public int compare(CommandLine.Model.OptionSpec o1, CommandLine.Model.OptionSpec o2)
- Specified by:
compare
in interfacejava.util.Comparator<CommandLine.Model.OptionSpec>
- Overrides:
compare
in classCommandLine.Help.SortByShortestOptionNameAlphabetically
-
-