- java.lang.Object
-
- java.lang.Enum<CommandLine.Help.Column.Overflow>
-
- picocli.CommandLine.Help.Column.Overflow
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandLine.Help.Column.Overflow>
- Enclosing class:
- CommandLine.Help.Column
public static enum CommandLine.Help.Column.Overflow extends Enum<CommandLine.Help.Column.Overflow>
Policy for handling text that is longer than the column width: span multiple columns, wrap to the next row, or simply truncate the portion that doesn't fit.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandLine.Help.Column.Overflow
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandLine.Help.Column.Overflow[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUNCATE
public static final CommandLine.Help.Column.Overflow TRUNCATE
-
SPAN
public static final CommandLine.Help.Column.Overflow SPAN
-
WRAP
public static final CommandLine.Help.Column.Overflow WRAP
-
-
Method Detail
-
values
public static CommandLine.Help.Column.Overflow[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandLine.Help.Column.Overflow c : CommandLine.Help.Column.Overflow.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLine.Help.Column.Overflow valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-