public class UsageHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<CommandMetadata> |
DEFAULT_COMMAND_COMPARATOR
Default comparator for commands
|
static Comparator<CommandGroupMetadata> |
DEFAULT_COMMAND_GROUP_COMPARATOR |
static Comparator<Map.Entry<Integer,String>> |
DEFAULT_EXIT_CODE_COMPARATOR
Default comparator for exit codes
|
static Comparator<HelpHint> |
DEFAULT_HINT_COMPARATOR
Default comparator for help hints
|
static Comparator<OptionMetadata> |
DEFAULT_OPTION_COMPARATOR
Default comparator for options
|
Constructor and Description |
---|
UsageHelper() |
public static final Comparator<HelpHint> DEFAULT_HINT_COMPARATOR
Compares by class name of the implementation to give a predictable order in output. Where multiple instances of same implementation hint exists compares by identity hash codes of the instances.
public static final Comparator<OptionMetadata> DEFAULT_OPTION_COMPARATOR
Compares against the user readable portion of the option name omitting
any leading -
characters
public static final Comparator<CommandMetadata> DEFAULT_COMMAND_COMPARATOR
Compares by alphabetical ordering
public static final Comparator<CommandGroupMetadata> DEFAULT_COMMAND_GROUP_COMPARATOR
public static final Comparator<Map.Entry<Integer,String>> DEFAULT_EXIT_CODE_COMPARATOR
Compares by numerical sorting on the exit codes and then alphabetical sorting on the descriptions
public static String[] toGroupNames(List<CommandGroupMetadata> groupPath)
Copyright © 2012–2017. All rights reserved.