public class LocalizedCollator extends Object
Localizable
,
Collator
,
Locale
,
Localizable
,
Localizer
,
GenericCollationKey
Constructor and Description |
---|
LocalizedCollator(Locale locale)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
<T extends Localizable> |
getCollationKey(T source)
Gets the collation key for the given
Localizable source. |
<T> GenericCollationKey<T> |
getCollationKey(T source,
Localizer<? super T> localizer)
Gets the collation key for the given source using the specified
Localizer . |
Collator |
getCollator()
Gets the collator.
|
Locale |
getLocale()
Gets the locale.
|
public LocalizedCollator(Locale locale)
locale
- the localepublic Locale getLocale()
public Collator getCollator()
public <T extends Localizable> GenericCollationKey<T> getCollationKey(T source)
Localizable
source.T
- the type of the sourcesource
- the sourcegetCollationKey(java.lang.Object, org.softsmithy.lib.text.Localizer)
public <T> GenericCollationKey<T> getCollationKey(T source, Localizer<? super T> localizer)
Localizer
.T
- the type of the sourcesource
- the sourcelocalizer
- the localizergetCollationKey(org.softsmithy.lib.text.Localizable)
Copyright © 2002–2015 SoftSmithy. All rights reserved.