CollationAbstractionLayerImplpublic class CollationAbstractionLayerImpl extends CollationAbstractionLayer This class customizes the {@link javax.microedition.global.StringComparator}
implementation to the emulator needs. |
Constructors Summary |
---|
public CollationAbstractionLayerImpl()Create instance of CollationAbstractionLayerImpl . This
constructor is necessary because of Class.forName() creation
call in
{@link com.sun.j2me.global.CollationAbstractionLayer#getInstance}.
|
Methods Summary |
---|
public CommonStringComparator | getStringComparator(java.lang.String locale, int level)Returns an instance of the {@link StringComparatorImpl} class,
which realizes all StringComparator methods.
return new StringComparatorImpl(locale, level);
| public java.lang.String[] | getSupportedLocales()Gets the locales for which a StringComparator is available
in this implementation. If no locales are supported, the returned array
must be empty, not null . As the value null is
not technically a valid locale, but a special value to trigger the
generic collation algorithm, it must not appear in the array.
return CollationElementTableImpl.getSupportedLocales();
|
|