Enum DateFormat.BooleanAttribute
- All Implemented Interfaces:
Serializable, Comparable<DateFormat.BooleanAttribute>
- Enclosing class:
DateFormat
boolean attributes
- Author:
- Mark Davis, Chen-Lieh Huang, Alan Liu
- Status:
- Stable ICU 53.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionindicates tolerance of numeric data when String data may be assumed. e.g.indicates whitespace tolerance.indicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting "September" for a month pattern of MMM ("Sep")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.BooleanAttributeReturns 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.- Status:
- Stable ICU 53.
-
PARSE_ALLOW_NUMERIC
indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD- Status:
- Stable ICU 53.
-
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")- Status:
- Stable ICU 56.
-
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"- Status:
- Stable ICU 56.
-
PARSE_PARTIAL_MATCH
Deprecated.alias of PARSE_PARTIAL_LITERAL_MATCH- Status:
- Internal. This API is ICU internal only.
-
-
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
-