|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.text.DateTimePatternGenerator.VariableField
public static class DateTimePatternGenerator.VariableField
Utility class for FormatParser. Immutable class that is only used to mark the difference between a variable field and a literal string. Each variable field must consist of 1 to n variable characters, representing date format fields. For example, "VVVV" is valid while "V4" is not, nor is "44".
| Constructor Summary | |
|---|---|
DateTimePatternGenerator.VariableField(String string)
Deprecated. This API is ICU internal only. |
|
DateTimePatternGenerator.VariableField(String string,
boolean strict)
Deprecated. This API is ICU internal only. |
|
| Method Summary | |
|---|---|
static String |
getCanonicalCode(int type)
Deprecated. This API is ICU internal only. |
int |
getType()
Deprecated. This API is ICU internal only. |
boolean |
isNumeric()
Deprecated. This API is ICU internal only. |
String |
toString()
Deprecated. This API is ICU internal only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateTimePatternGenerator.VariableField(String string)
string - The string for the variable field.
public DateTimePatternGenerator.VariableField(String string,
boolean strict)
string - The string for the variable fieldstrict - If true, then only allows exactly those lengths specified by CLDR for variables. For example, "hh:mm aa" would throw an exception.
IllegalArgumentException - if the variable field is not valid.| Method Detail |
|---|
public int getType()
public static String getCanonicalCode(int type)
public boolean isNumeric()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||