Uses of Class
picocli.CommandLine.Range
-
Packages that use CommandLine.Range Package Description picocli -
-
Uses of CommandLine.Range in picocli
Methods in picocli that return CommandLine.Range Modifier and Type Method Description CommandLine.RangeCommandLine.Model.ArgSpec. arity()Returns how many arguments this option or positional parameter requires.static CommandLine.RangeCommandLine.Range. defaultArity(Class<?> type)Deprecated.usedefaultArity(Field)insteadstatic CommandLine.RangeCommandLine.Range. defaultArity(Field field)Returns the default arityRange: for interactive options/positional parameters, this is 0; foroptionsthis is 0 for booleans and 1 for other types, forparametersbooleans have arity 0, arrays or Collections have arity "0..*", and other types have arity 1.CommandLine.RangeCommandLine.Model.PositionalParamSpec.Builder. index()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.RangeCommandLine.Model.PositionalParamSpec. index()Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.CommandLine.RangeCommandLine.Range. max(int newMax)Returns a new Range object with themaxvalue replaced by the specified value.CommandLine.RangeCommandLine.Range. min(int newMin)Returns a new Range object with theminvalue replaced by the specified value.static CommandLine.RangeCommandLine.Range. optionArity(Field field)Returns a newRangebased on theCommandLine.Option.arity()annotation on the specified field, or the field type's default arity if no arity was specified.static CommandLine.RangeCommandLine.Range. parameterArity(Field field)Returns a newRangebased on theCommandLine.Parameters.arity()annotation on the specified field, or the field type's default arity if no arity was specified.static CommandLine.RangeCommandLine.Range. parameterIndex(Field field)Returns a newRangebased on theCommandLine.Parameters.index()annotation on the specified field.CommandLine.RangeCommandLine.Range. unspecified(boolean unspecified)Returns a new Range object with theisUnspecifiedvalue replaced by the specified value.static CommandLine.RangeCommandLine.Range. valueOf(String range)Leniently parses the specified String as anRangevalue and return the result.Methods in picocli with parameters of type CommandLine.Range Modifier and Type Method Description intCommandLine.Range. compareTo(CommandLine.Range other)CommandLine.Model.PositionalParamSpec.BuilderCommandLine.Model.PositionalParamSpec.Builder. index(CommandLine.Range index)Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.
-