com.pelzer.util.l10n
Class Locale
java.lang.Object
com.pelzer.util.l10n.Locale
- All Implemented Interfaces:
- Serializable
public class Locale
- extends Object
- implements Serializable
Wraps the passed-in localizer arrays so that we can use them as keys for lookup.
- See Also:
- Serialized Form
|
Field Summary |
protected Localizer[] |
localizers
|
static Locale |
NONE
Most non-locale aware systems will both populate and pull based on this special locale. |
NONE
public static final Locale NONE
- Most non-locale aware systems will both populate and pull based on this special locale. If this
empty locale is passed into the
Localizable.get(Locale[]) method, anywhere in the list,
if there are no direct matches, this will match the Localizable.getDefaultLocale() and
hence the get method may return the same value as Localizable.getDefault()
localizers
protected Localizer[] localizers
Locale
public Locale(Localizer... localizers)
Locale
public Locale(String language,
String territory,
String script)
Locale
public Locale(Locale locale)
getLocalizers
public Localizer[] getLocalizers()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
- Returns:
- The hashcode of the first localizer, or zero if no localizers are specified.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
- Returns:
- true if the passed in object wraps Localizers with the same values as this one
specified in the same order.
Copyright © 2012. All Rights Reserved.