com.ibm.icu.text
Enum SimpleDateFormat.ContextType
java.lang.Object
java.lang.Enum<SimpleDateFormat.ContextType>
com.ibm.icu.text.SimpleDateFormat.ContextType
- All Implemented Interfaces:
- Serializable, Comparable<SimpleDateFormat.ContextType>
- Enclosing class:
- SimpleDateFormat
public static enum SimpleDateFormat.ContextType
- extends Enum<SimpleDateFormat.ContextType>
Date format context types
- Status:
- Draft ICU 49.
Enum Constant Summary |
CAPITALIZATION
Type (key) for specifying the capitalization context for which a date
is to be formatted (possible values are in ContextValue). |
CAPITALIZATION
public static final SimpleDateFormat.ContextType CAPITALIZATION
- Type (key) for specifying the capitalization context for which a date
is to be formatted (possible values are in ContextValue).
- Status:
- Draft ICU 49.
values
public static SimpleDateFormat.ContextType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SimpleDateFormat.ContextType c : SimpleDateFormat.ContextType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SimpleDateFormat.ContextType valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
Copyright (c) 2012 IBM Corporation and others.