equal
deleted
inserted
replaced
106 * @return Returns an integer value. Value is less than zero if this is less |
106 * @return Returns an integer value. Value is less than zero if this is less |
107 * than target, value is zero if this and target are equal and value is greater than |
107 * than target, value is zero if this and target are equal and value is greater than |
108 * zero if this is greater than target. |
108 * zero if this is greater than target. |
109 * @see java.text.Collator#compare |
109 * @see java.text.Collator#compare |
110 */ |
110 */ |
111 abstract public int compareTo(CollationKey target); |
111 public abstract int compareTo(CollationKey target); |
112 |
112 |
113 /** |
113 /** |
114 * Returns the String that this CollationKey represents. |
114 * Returns the String that this CollationKey represents. |
115 * |
115 * |
116 * @return the source string of this CollationKey |
116 * @return the source string of this CollationKey |
126 * for each of those keys to obtain the same result. Byte arrays are |
126 * for each of those keys to obtain the same result. Byte arrays are |
127 * organized most significant byte first. |
127 * organized most significant byte first. |
128 * |
128 * |
129 * @return a byte array representation of the CollationKey |
129 * @return a byte array representation of the CollationKey |
130 */ |
130 */ |
131 abstract public byte[] toByteArray(); |
131 public abstract byte[] toByteArray(); |
132 |
132 |
133 |
133 |
134 /** |
134 /** |
135 * CollationKey constructor. |
135 * CollationKey constructor. |
136 * |
136 * |
143 throw new NullPointerException(); |
143 throw new NullPointerException(); |
144 } |
144 } |
145 this.source = source; |
145 this.source = source; |
146 } |
146 } |
147 |
147 |
148 final private String source; |
148 private final String source; |
149 } |
149 } |