public static class DateTimePatternGenerator.VariableField extends Object
Constructor and Description |
---|
DateTimePatternGenerator.VariableField(String string)
Deprecated.
This API is ICU internal only.
|
DateTimePatternGenerator.VariableField(String string,
boolean strict)
Deprecated.
This API is ICU internal only.
|
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.public int getType()
protected boolean isNumeric()
Copyright (c) 2011 IBM Corporation and others.