Package com.ibm.icu.text
Enum DisplayOptions.SubstituteHandling
- java.lang.Object
-
- java.lang.Enum<DisplayOptions.SubstituteHandling>
-
- com.ibm.icu.text.DisplayOptions.SubstituteHandling
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DisplayOptions.SubstituteHandling>
- Enclosing class:
- DisplayOptions
public static enum DisplayOptions.SubstituteHandling extends java.lang.Enum<DisplayOptions.SubstituteHandling>
Represents all the substitute handlings.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_SUBSTITUTE
Returns a null value when no data is available.SUBSTITUTE
Returns a fallback value (e.g., the input code) when no data is available.UNDEFINED
A possible setting for SubstituteHandling.
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<DisplayOptions.SubstituteHandling>
VALUES
Unmodifiable List of all substitute handlings constants.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayOptions.SubstituteHandling
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DisplayOptions.SubstituteHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final DisplayOptions.SubstituteHandling UNDEFINED
A possible setting for SubstituteHandling. The SubstituteHandling context to be used is unknown (this is the default value).
-
SUBSTITUTE
public static final DisplayOptions.SubstituteHandling SUBSTITUTE
Returns a fallback value (e.g., the input code) when no data is available. This is the default behaviour.
-
NO_SUBSTITUTE
public static final DisplayOptions.SubstituteHandling NO_SUBSTITUTE
Returns a null value when no data is available.
-
-
Field Detail
-
VALUES
public static final java.util.List<DisplayOptions.SubstituteHandling> VALUES
Unmodifiable List of all substitute handlings constants. List version ofvalues()
.
-
-
Method Detail
-
values
public static DisplayOptions.SubstituteHandling[] 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 (DisplayOptions.SubstituteHandling c : DisplayOptions.SubstituteHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayOptions.SubstituteHandling valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-