Enum DisplayOptions.SubstituteHandling
java.lang.Object
java.lang.Enum<DisplayOptions.SubstituteHandling>
com.ibm.icu.text.DisplayOptions.SubstituteHandling
- All Implemented Interfaces:
Serializable, Comparable<DisplayOptions.SubstituteHandling>
- Enclosing class:
DisplayOptions
public static enum DisplayOptions.SubstituteHandling
extends Enum<DisplayOptions.SubstituteHandling>
Represents all the substitute handlings.
- Status:
- Stable ICU 72.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns a null value when no data is available.Returns a fallback value (e.g., the input code) when no data is available.A possible setting for SubstituteHandling. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<DisplayOptions.SubstituteHandling> Unmodifiable List of all substitute handlings constants. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
UNDEFINED
A possible setting for SubstituteHandling. The SubstituteHandling context to be used is unknown (this is the default value).- Status:
- Stable ICU 72.
-
SUBSTITUTE
Returns a fallback value (e.g., the input code) when no data is available. This is the default behaviour.- Status:
- Stable ICU 72.
-
NO_SUBSTITUTE
Returns a null value when no data is available.- Status:
- Stable ICU 72.
-
-
Field Details
-
VALUES
Unmodifiable List of all substitute handlings constants. List version ofvalues().- Status:
- Stable ICU 72.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-