public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
/** * Factory method to create a CollationKey that can be used as a proxy for * string comparisons under this collation * @param source the string whose CollationKey is required * @return a CollationKey with the property that two collation keys are equal (according * to its {@link CollationKey#equals(Object)} method if their corresponding strings are * considered to be equal under this collation */ public CollationKey getJavaCollationKey(String source) { return uca.getCollationKey(source); }
/** * Factory method to create a CollationKey that can be used as a proxy for * string comparisons under this collation * @param source the string whose CollationKey is required * @return a CollationKey with the property that two collation keys are equal (according * to its {@link CollationKey#equals(Object)} method if their corresponding strings are * considered to be equal under this collation */ public CollationKey getJavaCollationKey(String source) { return uca.getCollationKey(source); }
public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
/** * Get a collation key that can be used as a proxy for strings being compared * @param s the string whose collation key is required * @return a collation key */ @Override public AtomicMatchKey getCollationKey(CharSequence s) { CollationKey ck = uca.getCollationKey(s.toString()); return new CollationMatchKey(ck); }
public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
/** * Get a collation key that can be used as a proxy for strings being compared * @param s the string whose collation key is required * @return a collation key */ @Override public AtomicMatchKey getCollationKey(CharSequence s) { CollationKey ck = uca.getCollationKey(s.toString()); return new CollationMatchKey(ck); }
public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ if((caseOrder == null) ||(caseOrder.length() == 0)){// no case-order specified return ((RuleBasedCollator)collator).getCollationKey(text); }else{ return new StringComparable(text, locale, collator, caseOrder); } }
/** * Get a collation key for two Strings. The essential property of collation keys * is that if two values are equal under the collation, then the collation keys are * compare correctly under the equals() method. * @param s */ public AtomicMatchKey getCollationKey(CharSequence s) { return new CollationMatchKey(getRuleBasedCollator().getCollationKey(s.toString())); }
/** * Get a collation key for two Strings. The essential property of collation keys * is that if two values are equal under the collation, then the collation keys are * compare correctly under the equals() method. * @param s */ public AtomicMatchKey getCollationKey(CharSequence s) { return new CollationMatchKey(getRuleBasedCollator().getCollationKey(s.toString())); }
cKey = rbc.getCollationKey(new String(rawData, 0, lastNonspaceChar));
cKey = rbc.getCollationKey(new String(rawData, 0, lastNonspaceChar));
cKey = rbc.getCollationKey(new String(rawData, 0, lastNonspaceChar));