Package com.ibm.icu.text
Class PluralRanges
- java.lang.Object
-
- com.ibm.icu.text.PluralRanges
-
- All Implemented Interfaces:
Freezable<PluralRanges>
,Cloneable
,Comparable<PluralRanges>
@Deprecated public final class PluralRanges extends Object implements Freezable<PluralRanges>, Comparable<PluralRanges>
Deprecated.This API is ICU internal only.Utility class for returning the plural category for a range of numbers, such as 1–5, so that appropriate messages can be chosen. The rules for determining this value vary widely across locales.- Author:
- markdavis
-
-
Constructor Summary
Constructors Constructor Description PluralRanges()
Deprecated.This API is ICU internal only.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(com.ibm.icu.impl.StandardPlural rangeStart, com.ibm.icu.impl.StandardPlural rangeEnd, com.ibm.icu.impl.StandardPlural result)
Deprecated.This API is ICU internal only.PluralRanges
cloneAsThawed()
Deprecated.This API is ICU internal only.int
compareTo(PluralRanges that)
Deprecated.This API is ICU internal only.boolean
equals(Object other)
Deprecated.This API is ICU internal only.PluralRanges
freeze()
Deprecated.This API is ICU internal only.com.ibm.icu.impl.StandardPlural
get(com.ibm.icu.impl.StandardPlural start, com.ibm.icu.impl.StandardPlural end)
Deprecated.This API is ICU internal only.int
hashCode()
Deprecated.This API is ICU internal only.boolean
isExplicit(com.ibm.icu.impl.StandardPlural start, com.ibm.icu.impl.StandardPlural end)
Deprecated.This API is ICU internal only.boolean
isExplicitlySet(com.ibm.icu.impl.StandardPlural count)
Deprecated.This API is ICU internal only.boolean
isFrozen()
Deprecated.This API is ICU internal only.String
toString()
Deprecated.This API is ICU internal only.
-
-
-
Constructor Detail
-
PluralRanges
@Deprecated public PluralRanges()
Deprecated.This API is ICU internal only.Constructor
-
-
Method Detail
-
add
@Deprecated public void add(com.ibm.icu.impl.StandardPlural rangeStart, com.ibm.icu.impl.StandardPlural rangeEnd, com.ibm.icu.impl.StandardPlural result)
Deprecated.This API is ICU internal only.Internal method for building. If the start or end are null, it means everything of that type.- Parameters:
rangeStart
- plural category for the start of the rangerangeEnd
- plural category for the end of the rangeresult
- the resulting plural category
-
get
@Deprecated public com.ibm.icu.impl.StandardPlural get(com.ibm.icu.impl.StandardPlural start, com.ibm.icu.impl.StandardPlural end)
Deprecated.This API is ICU internal only.Returns the appropriate plural category for a range from start to end. If there is no available data, then 'end' is returned as an implicit value. (Such an implicit value can be tested for withisExplicit(com.ibm.icu.impl.StandardPlural, com.ibm.icu.impl.StandardPlural)
.)- Parameters:
start
- plural category for the start of the rangeend
- plural category for the end of the range- Returns:
- the resulting plural category, or 'end' if there is no data.
-
isExplicit
@Deprecated public boolean isExplicit(com.ibm.icu.impl.StandardPlural start, com.ibm.icu.impl.StandardPlural end)
Deprecated.This API is ICU internal only.Returns whether the appropriate plural category for a range from start to end is explicitly in the data (vs given an implicit value). See alsoget(com.ibm.icu.impl.StandardPlural, com.ibm.icu.impl.StandardPlural)
.- Parameters:
start
- plural category for the start of the rangeend
- plural category for the end of the range- Returns:
- whether the value for (start,end) is explicit or not.
-
isExplicitlySet
@Deprecated public boolean isExplicitlySet(com.ibm.icu.impl.StandardPlural count)
Deprecated.This API is ICU internal only.Internal method to determines whether the StandardPluralCategories was explicitly used in any add statement.- Parameters:
count
- plural category to test- Returns:
- true if set
-
equals
@Deprecated public boolean equals(Object other)
Deprecated.This API is ICU internal only.
-
hashCode
@Deprecated public int hashCode()
Deprecated.This API is ICU internal only.
-
compareTo
@Deprecated public int compareTo(PluralRanges that)
Deprecated.This API is ICU internal only.- Specified by:
compareTo
in interfaceComparable<PluralRanges>
-
isFrozen
@Deprecated public boolean isFrozen()
Deprecated.This API is ICU internal only.Determines whether the object has been frozen or not.- Specified by:
isFrozen
in interfaceFreezable<PluralRanges>
-
freeze
@Deprecated public PluralRanges freeze()
Deprecated.This API is ICU internal only.Freezes the object.- Specified by:
freeze
in interfaceFreezable<PluralRanges>
- Returns:
- the object itself.
-
cloneAsThawed
@Deprecated public PluralRanges cloneAsThawed()
Deprecated.This API is ICU internal only.Provides for the clone operation. Any clone is initially unfrozen.- Specified by:
cloneAsThawed
in interfaceFreezable<PluralRanges>
-
toString
@Deprecated public String toString()
Deprecated.This API is ICU internal only.
-
-