Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Method and Description |
---|---|
static CommandLine.Range |
CommandLine.Range.defaultArity(Class<?> type)
Returns the default arity
Range for options : booleans have arity 0, other types have arity 1. |
static CommandLine.Range |
CommandLine.Range.defaultArity(Field field)
Returns the default arity
Range : for options this is 0 for booleans and 1 for
other types, for parameters booleans have arity 0, arrays or Collections have
arity "0..*", and other types have arity 1. |
CommandLine.Range |
CommandLine.Range.max(int newMax)
Returns a new Range object with the
max value replaced by the specified value. |
CommandLine.Range |
CommandLine.Range.min(int newMin)
Returns a new Range object with the
min value replaced by the specified value. |
static CommandLine.Range |
CommandLine.Range.optionArity(Field field)
Returns a new
Range based on the CommandLine.Option.arity() annotation on the specified field,
or the field type's default arity if no arity was specified. |
static CommandLine.Range |
CommandLine.Range.parameterArity(Field field)
Returns a new
Range based on the CommandLine.Parameters.arity() annotation on the specified field,
or the field type's default arity if no arity was specified. |
static CommandLine.Range |
CommandLine.Range.parameterIndex(Field field)
Returns a new
Range based on the CommandLine.Parameters.index() annotation on the specified field. |
static CommandLine.Range |
CommandLine.Range.valueOf(String range)
Leniently parses the specified String as an
Range value and return the result. |
Modifier and Type | Method and Description |
---|---|
int |
CommandLine.Range.compareTo(CommandLine.Range other) |
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.