ICU-8662 exposed some API (as @internal)

X-SVN-Rev: 30225
This commit is contained in:
Mark Davis 2011-06-23 17:29:16 +00:00
parent feebfdb866
commit 38a2ac09cc

View File

@ -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;
}