Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.metadata
Class LocaleList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LocaleList()
          Constructs a LocaleList.
LocaleList(Collection members)
          Constructs a LocaleList.
LocaleList(Locale locale)
          Constructs a LocaleList.
 
Method Summary
 Locale getLocale(int index)
          Finds the measure from the list, using its index.
 Locale getLocaleByLanguage(String language)
          Finds the locale from the list, using its language.
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

LocaleList

public LocaleList()
Constructs a LocaleList.


LocaleList

public LocaleList(Collection members)
Constructs a LocaleList.


LocaleList

public LocaleList(Locale locale)
Constructs a LocaleList.

Method Detail

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

Copyright © 2011 Citra Technologies. All Rights Reserved.