Package io.cui.tools.formatting
Enum SimpleFormatter.ValueHandling
- java.lang.Object
-
- java.lang.Enum<SimpleFormatter.ValueHandling>
-
- io.cui.tools.formatting.SimpleFormatter.ValueHandling
-
- All Implemented Interfaces:
Serializable,Comparable<SimpleFormatter.ValueHandling>
- Enclosing class:
- SimpleFormatter
public static enum SimpleFormatter.ValueHandling extends Enum<SimpleFormatter.ValueHandling>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_IF_ALL_AVAILABLEFormat all available data.FORMAT_IF_ANY_AVAILABLEFormat all available data.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleFormatter.ValueHandlingvalueOf(String name)Returns the enum constant of this type with the specified name.static SimpleFormatter.ValueHandling[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMAT_IF_ANY_AVAILABLE
public static final SimpleFormatter.ValueHandling FORMAT_IF_ANY_AVAILABLE
Format all available data. If some are null or empty skip them silently.
-
FORMAT_IF_ALL_AVAILABLE
public static final SimpleFormatter.ValueHandling FORMAT_IF_ALL_AVAILABLE
Format all available data. If one of them is null or empty skip all silently.
-
-
Method Detail
-
values
public static SimpleFormatter.ValueHandling[] 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 (SimpleFormatter.ValueHandling c : SimpleFormatter.ValueHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleFormatter.ValueHandling 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
-
-