|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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 to| Method Detail |
|---|
public int getStrength()
getStrength in class java.text.Collatorpublic void setStrength(int newStrength)
setStrength in class java.text.CollatornewStrength - the new strength value.java.lang.UnsupportedOperationException - always thrownpublic int getDecomposition()
getDecomposition in class java.text.Collatorpublic void setDecomposition(int decomposition)
setDecomposition in class java.text.Collatordecomposition - the new decomposition modejava.lang.UnsupportedOperationException - always thrown
public 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.Collatorsource - the source string.target - the target string.public java.text.CollationKey getCollationKey(java.lang.String source)
getCollationKey in class java.text.Collatorsource - the string to be transformed into a collation key.public java.lang.Object clone()
clone in class java.text.Collatorpublic boolean equals(java.lang.Object that)
equals in interface java.util.Comparatorequals in class java.text.Collatorthat - the Collator to be compared with this.public int hashCode()
hashCode in class java.text.Collatorprotected java.util.Map getCache()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||