Home | History | Annotate | Download | only in text

Lines Matching refs:Collator

61  * This {@code Collator} deals only with two decomposition modes, the canonical
64 * {@code java.text.Collator.FULL_DECOMPOSITION} is not supported here. If the
65 * canonical decomposition mode is set, {@code Collator} handles un-normalized
75 * // Get the Collator for US English and set its strength to PRIMARY
76 * Collator usCollator = Collator.getInstance(Locale.US);
77 * usCollator.setStrength(Collator.PRIMARY);
85 * The following example shows how to compare two strings using the collator for
91 * Collator myCollator = Collator.getInstance();
92 * myCollator.setDecomposition(Collator.NO_DECOMPOSITION);
95 * myCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION);
111 public abstract class Collator implements Comparator<Object>, Cloneable {
150 Collator(RuleBasedCollatorICU icuColl) {
155 * Constructs a new {@code Collator} instance.
157 protected Collator() {
162 * Returns a new collator with the same decomposition mode and
163 * strength value as this collator.
165 * @return a shallow copy of this collator.
171 Collator clone = (Collator) super.clone();
211 * Compares this collator with the specified object and indicates if they
216 * @return {@code true} if {@code object} is a {@code Collator} object and
218 * collator; {@code false} otherwise.
223 if (!(object instanceof Collator)) {
226 Collator collator = (Collator) object;
227 return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl);
246 * Returns an array of locales for which custom {@code Collator} instances
255 * Returns a {@link CollationKey} for the specified string for this collator
265 * Returns the decomposition rule for this collator.
276 * Returns a {@code Collator} instance which is appropriate for the user's default
280 public static Collator getInstance() {
285 * Returns a {@code Collator} instance which is appropriate for {@code locale}.
287 public static Collator getInstance(Locale locale) {
295 * Returns the strength value for this collator.
308 * Sets the decomposition rule for this collator.
323 * Sets the strength value for this collator.
337 case Collator.CANONICAL_DECOMPOSITION:
339 case Collator.NO_DECOMPOSITION:
349 javaMode = Collator.NO_DECOMPOSITION;
352 javaMode = Collator.CANONICAL_DECOMPOSITION;
360 case Collator.PRIMARY:
362 case Collator.SECONDARY:
364 case Collator.TERTIARY:
366 case Collator.IDENTICAL:
376 javaValue = Collator.PRIMARY;
379 javaValue = Collator.SECONDARY;
382 javaValue = Collator.TERTIARY;
385 javaValue = Collator.IDENTICAL;