}
/**
- * This implementation is equivalent to Java 8+ {@link Math#addExact(int, int)}
+ * This implementation is equivalent to Java 8+ Math#addExact(int, int)
* @param x the first value
* @param y the second value
* @return the result
BreakIteratorCache cache = new BreakIteratorCache(where, result);
iterCache[kind] = CacheValue.getInstance(cache);
- if (result instanceof RuleBasedBreakIterator) {
- RuleBasedBreakIterator rbbi = (RuleBasedBreakIterator)result;
- }
return result;
}
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
private static int COUNT = DisplayWidth.values().length;
private final String cldrKey;
DisplayWidth(String cldrKey) {
return cldrKey;
}
}
-
+
/**
* The field name width for use in appendItems
*/
*
* @param field The index to get the append item name.
* @return name for field
- * @see getFieldDisplayName
+ * @see #getFieldDisplayName(int, DisplayWidth)
* @stable ICU 3.6
*/
public String getAppendItemName(int field) {
* @internal
* @deprecated This API is ICU internal only.
*/
+ @Deprecated
private void setFieldDisplayName(int field, DisplayWidth width, String value) {
checkFrozen();
if (field < TYPE_LIMIT && field >= 0) {
package com.ibm.icu.text;
import java.text.CharacterIterator;
-import java.util.BitSet;
import com.ibm.icu.impl.CharacterIteration;
private static final MathContext MATH_CONTEXT_HALF_EVEN = new MathContext(0, RoundingMode.HALF_EVEN);
private static final MathContext MATH_CONTEXT_CEILING = new MathContext(0, RoundingMode.CEILING);
+ @SuppressWarnings("unused")
private static final MathContext MATH_CONTEXT_FLOOR = new MathContext(0, RoundingMode.FLOOR);
private static final MathContext MATH_CONTEXT_PRECISION = new MathContext(3, RoundingMode.HALF_UP);
}
}
+ @SuppressWarnings("unused")
@Ignore("Disabled because of Linux; need to investigate.")
@Test
public void testTiming() {