|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softsmithy.lib.text.Localizables
public class Localizables
A utility class for Localizable
s.
Localizable
,
Localizer
,
LocalizedCollator
,
Locale
Method Summary | ||
---|---|---|
static void |
sort(List<? extends Localizable> localizables)
Sorts a list of Localizable s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale) -representation
(uses the default locale). |
|
static void |
sort(Locale inLocale,
List<? extends Localizable> localizables)
Sorts a list of Localizable s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale) -representation. |
|
static void |
sort(Locale inLocale,
Localizable... localizables)
Sorts an array of Localizable s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale) -representation. |
|
static void |
sort(Localizable... localizables)
Sorts an array of Localizable s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale) -representation
(uses the default locale). |
|
static void |
sort(LocalizedCollator collator,
List<? extends Localizable> localizables)
Sorts a list of Localizable s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale) -representation
as specified by the collator. |
|
static void |
sort(LocalizedCollator collator,
Localizable... localizables)
Sorts an array of Localizable s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale) -representation
as specified by the collator. |
|
static
|
sort(Localizer<? super T> localizer,
List<T> list)
Sorts a list of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation
(uses the default locale). |
|
static
|
sort(Localizer<? super T> localizer,
Locale inLocale,
List<T> list)
Sorts a list of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation. |
|
static
|
sort(Localizer<? super T> localizer,
Locale inLocale,
T... objects)
Sorts an array of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation. |
|
static
|
sort(Localizer<? super T> localizer,
LocalizedCollator collator,
List<T> list)
Sorts a list of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation
as specified by the collator. |
|
static
|
sort(Localizer<? super T> localizer,
LocalizedCollator collator,
T... objects)
Sorts an array of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation
as specified by the collator. |
|
static
|
sort(Localizer<? super T> localizer,
T... array)
Sorts an array of objects in the natural, locale-sensitive order of their Localizer.getDisplayString(java.lang.Object, java.util.Locale) -representation
(uses the default locale). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void sort(Locale inLocale, Localizable... localizables)
Localizable
s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale)
-representation.
inLocale
- selects the localized display strings and the natural,
locale-sensitive order for this localelocalizables
- the localizables to sortpublic static void sort(LocalizedCollator collator, Localizable... localizables)
Localizable
s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale)
-representation
as specified by the collator.
collator
- selects the localized display strings and specifies the natural,
locale-sensitive order for this localelocalizables
- the localizables to sortpublic static void sort(Localizable... localizables)
Localizable
s in the natural, locale-sensitive order of
their Localizable.getDisplayString(java.util.Locale)
-representation
(uses the default locale).
localizables
- the localizables to sortLocale.getDefault()
public static <T> void sort(Localizer<? super T> localizer, Locale inLocale, T... objects)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation.
localizer
- gets the localized display strings of the objectsinLocale
- selects the localized display strings and the natural,
locale-sensitive order for this localeobjects
- the objects to sortpublic static <T> void sort(Localizer<? super T> localizer, LocalizedCollator collator, T... objects)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation
as specified by the collator.
localizer
- gets the localized display strings of the objectscollator
- selects the localized display strings and specifies the natural,
locale-sensitive order for this localeobjects
- the objects to sortpublic static <T> void sort(Localizer<? super T> localizer, T... array)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation
(uses the default locale).
localizer
- gets the localized display strings of the objectsobjects
- the objects to sortpublic static void sort(Locale inLocale, List<? extends Localizable> localizables)
Localizable
s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale)
-representation.
inLocale
- selects the localized display strings and the natural,
locale-sensitive order for this localelocalizables
- the localizables to sortpublic static void sort(LocalizedCollator collator, List<? extends Localizable> localizables)
Localizable
s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale)
-representation
as specified by the collator.
collator
- selects the localized display strings and specifies the natural,
locale-sensitive order for this localelocalizables
- the localizables to sortpublic static void sort(List<? extends Localizable> localizables)
Localizable
s in the natural, locale-sensitive order of their
Localizable.getDisplayString(java.util.Locale)
-representation
(uses the default locale).
localizables
- the localizables to sortLocale.getDefault()
public static <T> void sort(Localizer<? super T> localizer, Locale inLocale, List<T> list)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation.
localizer
- gets the localized display strings of the objectsinLocale
- selects the localized display strings and the natural,
locale-sensitive order for this localelist
- the objects to sortpublic static <T> void sort(Localizer<? super T> localizer, LocalizedCollator collator, List<T> list)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation
as specified by the collator.
localizer
- gets the localized display strings of the objectscollator
- selects the localized display strings and specifies the natural,
locale-sensitive order for this localelist
- the objects to sortpublic static <T> void sort(Localizer<? super T> localizer, List<T> list)
Localizer.getDisplayString(java.lang.Object, java.util.Locale)
-representation
(uses the default locale).
localizer
- gets the localized display strings of the objectslist
- the objects to sortLocale.getDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |