Package oracle.i18n.text
Class OraCollationKey
- java.lang.Object
-
- oracle.i18n.text.OraCollationKey
-
- All Implemented Interfaces:
Comparable
public class OraCollationKey extends Object implements Comparable
TheOraCollationKeyclass represents aStringobject under control of a specificOraCollatorobject. This construct is used to store a sorting order under a certain sorting rule and to be compared when needed.- Since:
- Oracle 10.1.0.2
- See Also:
OraCollator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)Compares thisOraCollationKeyobject with the specifiedObjectobject.intcompareTo(OraCollationKey target)Compare thisOraCollationKeyobject to the targetOraCollationKeyobject.booleanequals(Object target)Determines if thisOraCollationKeyobject and the targetOraCollationKeyobject are equal.intgetNextMonoKeys(byte[] keyArray)int[]getNextMultiKeys(byte[] keyArray)StringgetSourceString()Returns the sourceStringobject that thisOraCollationKeyobject represents.inthashCode()Creates a hash code for thisOraCollationKeyobject; the value is calculated on the key, not the source string.byte[]toByteArray()Converts theOraCollationKeyobject to a sequence of bytes.
-
-
-
Method Detail
-
compareTo
public int compareTo(OraCollationKey target)
Compare thisOraCollationKeyobject to the targetOraCollationKeyobject. The collation rules of theOraCollatorobject that created these keys are applied.OraCollationKeyobjects created by differentOraCollatorobjects cannot be compared.- Parameters:
target- the targetOraCollationKey- Returns:
OraCollator.GREATER,OraCollator.LESS, orOraCollator.EQUAL- See Also:
OraCollator.compare(java.lang.Object, java.lang.Object)
-
compareTo
public int compareTo(Object o)
Compares thisOraCollationKeyobject with the specifiedObjectobject.- Specified by:
compareToin interfaceComparable- Parameters:
o- theObjectobject to which theOraCollationKeyobject is compared- Returns:
OraCollator.GREATER,OraCollator.LESS, orOraCollator.EQUAL
-
equals
public boolean equals(Object target)
Determines if thisOraCollationKeyobject and the targetOraCollationKeyobject are equal.
-
hashCode
public int hashCode()
Creates a hash code for thisOraCollationKeyobject; the value is calculated on the key, not the source string.
-
getSourceString
public String getSourceString()
Returns the sourceStringobject that thisOraCollationKeyobject represents.- Returns:
- the source
Stringobject
-
toByteArray
public byte[] toByteArray()
Converts theOraCollationKeyobject to a sequence of bytes.- Returns:
- a byte array representation of the
OraCollationKeyobject
-
getNextMultiKeys
public int[] getNextMultiKeys(byte[] keyArray)
-
getNextMonoKeys
public int getNextMonoKeys(byte[] keyArray)
-
-