ICU-5374 reduce visibility of some APIs
X-SVN-Rev: 20293
This commit is contained in:
parent
6cfdf65b46
commit
d27e2e5222
@ -700,10 +700,11 @@ public abstract class BreakIterator implements Cloneable
|
||||
|
||||
// end of registration
|
||||
|
||||
/*
|
||||
/**
|
||||
* Get a particular kind of BreakIterator for a locale.
|
||||
* Avoids writing a switch statement with getXYZInstance(where) calls.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public static BreakIterator getBreakInstance(ULocale where, int kind) {
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/DateTimePatternGenerator.java,v $
|
||||
* $Date: 2006/08/23 21:28:10 $
|
||||
* $Revision: 1.2 $
|
||||
* $Date: 2006/09/08 23:51:48 $
|
||||
* $Revision: 1.3 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -50,7 +50,8 @@ import com.ibm.icu.util.UResourceBundle;
|
||||
* since normally this class is pre-built with data from a particular locale. However, generators can be built directly from other data as well.
|
||||
* <p><i>Issue: may be useful to also have a function that returns the list of fields in a pattern, in order, since we have that internally.
|
||||
* That would be useful for getting the UI order of field elements.</i>
|
||||
*
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public class DateTimePatternGenerator implements Freezable, Cloneable {
|
||||
// debugging flags
|
||||
@ -60,6 +61,9 @@ public class DateTimePatternGenerator implements Freezable, Cloneable {
|
||||
|
||||
/**
|
||||
* Create empty generator, to be constructed with add(...) etc.
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*
|
||||
*/
|
||||
public DateTimePatternGenerator() {
|
||||
}
|
||||
@ -67,6 +71,8 @@ public class DateTimePatternGenerator implements Freezable, Cloneable {
|
||||
/**
|
||||
* Construct a flexible generator according to data for a given locale.
|
||||
* @param uLocale
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static DateTimePatternGenerator getInstance(ULocale uLocale) {
|
||||
DateTimePatternGenerator result = new DateTimePatternGenerator();
|
||||
@ -591,7 +597,7 @@ public class DateTimePatternGenerator implements Freezable, Cloneable {
|
||||
public String getAppendItemNames(int field) {
|
||||
return appendItemNames[field];
|
||||
}
|
||||
|
||||
|
||||
public static boolean isSingleField(String skeleton) {
|
||||
char first = skeleton.charAt(0);
|
||||
for (int i = 1; i < skeleton.length(); ++i) {
|
||||
|
@ -3302,8 +3302,12 @@ public class DecimalFormat extends NumberFormat {
|
||||
attributes.add(pos);
|
||||
}
|
||||
//#ifndef FOUNDATION
|
||||
// [Spark/CDL] format the object to an attributed string,
|
||||
// and return the corresponding iterator
|
||||
/**
|
||||
* Format the object to an attributed string, and return the corresponding iterator
|
||||
* Overrides superclass method.
|
||||
* @stable ICU 3.6
|
||||
*/
|
||||
// [Spark/CDL]
|
||||
public AttributedCharacterIterator formatToCharacterIterator(Object obj) {
|
||||
if (!(obj instanceof Number))
|
||||
throw new IllegalArgumentException();
|
||||
|
@ -63,7 +63,10 @@ public class CaseInsensitiveString {
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides superclass method
|
||||
* @stable ICU 3.6
|
||||
*/
|
||||
public String toString() {
|
||||
return string;
|
||||
}
|
||||
|
@ -90,6 +90,13 @@ import com.ibm.icu.text.SimpleDateFormat;
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public class GlobalizationPreferences implements Freezable {
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public GlobalizationPreferences(){}
|
||||
/**
|
||||
* Number Format types
|
||||
* @draft ICU 3.6
|
||||
|
Loading…
Reference in New Issue
Block a user