|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.CollationKeyFactory
A factory for object collation keys.
Supported API: true
Extendable: true
Field Summary | |
private Collator |
collator
|
private Locale |
locale
|
private static String |
versionID
|
Constructor Summary | |
CollationKeyFactory()
Construct a collation key factory for the current WTContext 's locale. |
|
CollationKeyFactory(Locale locale)
Construct a collation key factory for the given locale. |
Method Summary | |
String |
getCollationString(Object obj)
Get a collation string for the given object. |
CollationKey |
getKey(Object obj)
Get a collation key for the given object. |
Locale |
getLocale()
Get the locale corresponding to this factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private Locale locale
private Collator collator
Constructor Detail |
public CollationKeyFactory()
WTContext
's locale.
public CollationKeyFactory(Locale locale)
locale
- desired localeMethod Detail |
public Locale getLocale()
public CollationKey getKey(Object obj)
obj
- the object
public String getCollationString(Object obj)
obj.toString()
.
Subclasses should override to produce the desired collation string.
obj
- the object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |