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:
Serializable
,Comparable<DisplayOptions.SubstituteHandling>
,java.lang.constant.Constable
- Enclosing class:
DisplayOptions
public static enum DisplayOptions.SubstituteHandling
extends Enum<DisplayOptions.SubstituteHandling>
Represents all the substitute handlings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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). -
SUBSTITUTE
Returns a fallback value (e.g., the input code) when no data is available. This is the default behaviour. -
NO_SUBSTITUTE
Returns a null value when no data is available.
-
-
Field Details
-
VALUES
Unmodifiable List of all substitute handlings constants. List version ofvalues()
.
-
-
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
-