|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.i18n.text.OraCollationKey
OraCollationKey class represents a String under
control of a specific OraCollator object. This construct is
used to store a sorting order under a certain sorting rule and to be
compared when needed.
OraCollator| Method Summary | |
int |
compareTo(Object o)
Compares this (code>OraCollationKey with the specified Object. |
int |
compareTo(oracle.i18n.text.OraCollationKey target)
Compare this OraCollationKey to the target
OraCollationKey. |
boolean |
equals(Object target)
Determines if this OraCollationKey and the target
OraCollationKey are equal. |
String |
getSourceString()
Returns the source String that this
OraCollationKey represents. |
int |
hashCode()
Creates a hashCode for this OraCollationKey; the value is
calculated on the key, not the source String. |
byte[] |
toByteArray()
Converts the OraCollationKey to a sequence of bytes. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int compareTo(oracle.i18n.text.OraCollationKey target)
OraCollationKey to the target
OraCollationKey. The collation rules of the
OraCollator object that created these keys are applied.
OraCollationKeys created by different OraCollators
cannot be compared.
target - OraCollationKey
OraCollator.GREATER, OraCollator.LESS or
OraCollator.EQUAL- See Also:
OraCollator.compare(java.lang.Object, java.lang.Object)public int compareTo(Object o)
with the specified Object.
- Specified by:
compareTo in interface Comparable
- Parameters:
o - the Object to which the OraCollationKey is compared
- Returns:
OraCollator.GREATER, OraCollator.LESS or
OraCollator.EQUAL
- Throws:
ClassCastException - the specified object is not a
OraCollationKey
public boolean equals(Object target)
OraCollationKey and the target
OraCollationKey are equal.
equals in class Objecttarget - the OraCollationKey to which this
OraCollationKey is compared
public int hashCode()
OraCollationKey; the value is
calculated on the key, not the source String.
hashCode in class Objectpublic String getSourceString()
String that this
OraCollationKey represents.
Stringpublic byte[] toByteArray()
OraCollationKey to a sequence of bytes.
OraCollationKey
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||