Package com.ibm.icu.text
Enum SimpleDateFormat.ContextValue
- java.lang.Object
-
- java.lang.Enum<SimpleDateFormat.ContextValue>
-
- com.ibm.icu.text.SimpleDateFormat.ContextValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SimpleDateFormat.ContextValue>
- Enclosing class:
- SimpleDateFormat
private static enum SimpleDateFormat.ContextValue extends java.lang.Enum<SimpleDateFormat.ContextValue>
Old ContextValue enum, preserved only to avoid deserialization errs from ICU 49.1.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE
CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE
CAPITALIZATION_FOR_STANDALONE
CAPITALIZATION_FOR_UI_LIST_OR_MENU
UNKNOWN
-
Constructor Summary
Constructors Modifier Constructor Description private
ContextValue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleDateFormat.ContextValue
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimpleDateFormat.ContextValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final SimpleDateFormat.ContextValue UNKNOWN
-
CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE
public static final SimpleDateFormat.ContextValue CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE
-
CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE
public static final SimpleDateFormat.ContextValue CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE
-
CAPITALIZATION_FOR_UI_LIST_OR_MENU
public static final SimpleDateFormat.ContextValue CAPITALIZATION_FOR_UI_LIST_OR_MENU
-
CAPITALIZATION_FOR_STANDALONE
public static final SimpleDateFormat.ContextValue CAPITALIZATION_FOR_STANDALONE
-
-
Method Detail
-
values
public static SimpleDateFormat.ContextValue[] 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.ContextValue c : SimpleDateFormat.ContextValue.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.ContextValue valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-