65 |
* @author Tom Tromey (tromey@cygnus.com) |
* @author Tom Tromey (tromey@cygnus.com) |
66 |
* @date March 25, 1999 |
* @date March 25, 1999 |
67 |
*/ |
*/ |
68 |
public final class CollationKey implements Comparable |
public final class CollationKey implements Comparable<CollationKey> |
69 |
{ |
{ |
70 |
/** |
/** |
71 |
* This is the <code>Collator</code> this object was created from. |
* This is the <code>Collator</code> this object was created from. |
112 |
} |
} |
113 |
|
|
114 |
/** |
/** |
|
* This method compares the specified object to this one. The specified |
|
|
* object must be an instance of <code>CollationKey</code> or an exception |
|
|
* will be thrown. An integer is returned which indicates whether the |
|
|
* specified object is less than, greater than, or equal to this object. |
|
|
* |
|
|
* @param obj The <code>Object</code> to compare against this one. |
|
|
* |
|
|
* @return A negative integer if this object is less than the specified object, 0 if it is equal or a positive integer if it is greater than the specified object. |
|
|
*/ |
|
|
public int compareTo (Object obj) |
|
|
{ |
|
|
return compareTo ((CollationKey) obj); |
|
|
} |
|
|
|
|
|
/** |
|
115 |
* This method tests the specified <code>Object</code> for equality with |
* This method tests the specified <code>Object</code> for equality with |
116 |
* this object. This will be true if and only if: |
* this object. This will be true if and only if: |
117 |
* <p> |
* <p> |