Package com.ibm.icu.text
Enum DateFormat.BooleanAttribute
- All Implemented Interfaces:
Serializable
,Comparable<DateFormat.BooleanAttribute>
,java.lang.constant.Constable
- Enclosing class:
DateFormat
boolean attributes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionindicates tolerance of numeric data when String data may be assumed.indicates whitespace tolerance.indicates tolerance of pattern mismatch between input data and specified format pattern.indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormat.BooleanAttribute
Returns the enum constant of this type with the specified name.static DateFormat.BooleanAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PARSE_ALLOW_WHITESPACE
indicates whitespace tolerance. Also included is trailing dot tolerance. -
PARSE_ALLOW_NUMERIC
indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD -
PARSE_MULTIPLE_PATTERNS_FOR_MATCH
indicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting "September" for a month pattern of MMM ("Sep") -
PARSE_PARTIAL_LITERAL_MATCH
indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy" -
PARSE_PARTIAL_MATCH
Deprecated.alias of PARSE_PARTIAL_LITERAL_MATCH
-
-
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
-