Package com.ibm.icu.text
Enum ConstrainedFieldPosition.ConstraintType
java.lang.Object
java.lang.Enum<ConstrainedFieldPosition.ConstraintType>
com.ibm.icu.text.ConstrainedFieldPosition.ConstraintType
- All Implemented Interfaces:
Serializable
,Comparable<ConstrainedFieldPosition.ConstraintType>
,java.lang.constant.Constable
- Enclosing class:
- ConstrainedFieldPosition
private static enum ConstrainedFieldPosition.ConstraintType
extends Enum<ConstrainedFieldPosition.ConstraintType>
Represents the type of constraint for ConstrainedFieldPosition.
Constraints are used to control the behavior of iteration in FormattedValue.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Represents the lack of a constraint. This is the value of fConstraint if no "constrain" methods were called. -
CLASS
Represents that the field class is constrained. This is the value of fConstraint afterConstrainedFieldPosition.constrainClass(java.lang.Class<?>)
is called. FormattedValue implementations should not change the field class when this constraint is active. -
FIELD
Represents that the field is constrained. This is the value of fConstraint afterConstrainedFieldPosition.constrainField(java.text.Format.Field)
is called. FormattedValue implementations should not change the field when this constraint is active. -
VALUE
Represents that the field value is constrained. This is the value of fConstraint afterConstrainedFieldPosition.constrainField(java.text.Format.Field)
is called. FormattedValue implementations should not change the field or value with this constraint.
-
-
Constructor Details
-
ConstraintType
private ConstraintType()
-
-
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
-