public static class DateTimePatternGenerator.VariableField
extends java.lang.Object
Constructor and Description |
---|
DateTimePatternGenerator.VariableField(java.lang.String string)
Deprecated.
This API is ICU internal only.
|
DateTimePatternGenerator.VariableField(java.lang.String string,
boolean strict)
Deprecated.
This API is ICU internal only.
|
public DateTimePatternGenerator.VariableField(java.lang.String string)
string
- The string for the variable field.public DateTimePatternGenerator.VariableField(java.lang.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.java.lang.IllegalArgumentException
- if the variable field is not valid.public int getType()
protected boolean isNumeric()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2011 IBM Corporation and others.