|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.text.Collator
com.tangosol.util.CacheCollator
public class CacheCollator
Implements a collator which caches its keys.
Field Summary |
---|
Fields inherited from class java.text.Collator |
---|
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY |
Constructor Summary | |
---|---|
CacheCollator(java.text.Collator collator) Construct this collator to cache the results of another collator. |
Method Summary | |
---|---|
java.lang.Object |
clone() Clone the caching collator. |
int |
compare(java.lang.String source, java.lang.String target) Compares the source string to the target string according to the collation rules for this Collator. |
boolean |
equals(java.lang.Object that) Compares the equality of two Collators. |
protected java.util.Map |
getCache() |
java.text.CollationKey |
getCollationKey(java.lang.String source) Transforms the String into a series of bits that can be compared bitwise to other CollationKeys. |
int |
getDecomposition() Get the decomposition mode of this Collator. |
int |
getStrength() Returns this Collator's strength property. |
int |
hashCode() Generates the hash code for this Collator. |
void |
setDecomposition(int decomposition) Set the decomposition mode of this Collator. |
void |
setStrength(int newStrength) Sets this Collator's strength property. |
Methods inherited from class java.text.Collator |
---|
compare, equals, getAvailableLocales, getInstance, getInstance |
Constructor Detail |
---|
public CacheCollator(java.text.Collator collator)
collator
- the collator to delegate toMethod Detail |
---|
public int getStrength()
getStrength
in class java.text.Collator
public void setStrength(int newStrength)
setStrength
in class java.text.Collator
newStrength
- the new strength value.java.lang.UnsupportedOperationException
- always thrownpublic int getDecomposition()
getDecomposition
in class java.text.Collator
public void setDecomposition(int decomposition)
setDecomposition
in class java.text.Collator
decomposition
- the new decomposition modejava.lang.UnsupportedOperationException
- always thrownpublic int compare(java.lang.String source, java.lang.String target)
For a one time comparison, this method has the best performance. If a given String will be involved in multiple comparisons, CollationKey.compareTo has the best performance. See the Collator class description for an example using CollationKeys.
compare
in class java.text.Collator
source
- the source string.target
- the target string.public java.text.CollationKey getCollationKey(java.lang.String source)
getCollationKey
in class java.text.Collator
source
- the string to be transformed into a collation key.public java.lang.Object clone()
clone
in class java.text.Collator
public boolean equals(java.lang.Object that)
equals
in interface java.util.Comparator
equals
in class java.text.Collator
that
- the Collator to be compared with this.Object.equals(java.lang.Object)
, Object.hashCode()
public int hashCode()
hashCode
in class java.text.Collator
protected java.util.Map getCache()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |