ICU-8662 exposed some API (as @internal)
X-SVN-Rev: 30225
This commit is contained in:
parent
feebfdb866
commit
38a2ac09cc
@ -1098,13 +1098,24 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
|
||||
return types[canonicalIndex][1];
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public static String getCanonicalCode(int type) {
|
||||
try {
|
||||
return CANONICAL_ITEMS[type];
|
||||
} catch (Exception e) {
|
||||
return String.valueOf(type);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check if the type of this variable field is numeric.
|
||||
* @return true if the type of this variable field is numeric.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
protected boolean isNumeric() {
|
||||
public boolean isNumeric() {
|
||||
return types[canonicalIndex][2] > 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user