com.citra.pivot.olap.metadata
Class LocaleList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.citra.pivot.olap.metadata.LocaleList
- All Implemented Interfaces:
- Serializable, Cloneable, Collection, List, RandomAccess
public class LocaleList
- extends ArrayList
LocaleList is a list subclass that contains methods for retrieving a Locale by name and index.
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
LocaleList
public LocaleList()
- Constructs a LocaleList.
LocaleList
public LocaleList(Collection members)
- Constructs a LocaleList.
LocaleList
public LocaleList(Locale locale)
- Constructs a LocaleList.
getLocale
public Locale getLocale(int index)
- Finds the measure from the list, using its index.
- Parameters:
index
- index of element to return
getLocaleByLanguage
public Locale getLocaleByLanguage(String language)
- Finds the locale from the list, using its language.
- Parameters:
language
- the language to search for
- Returns:
- the locale if found, null otherwise