mondrian.util
Class ConcatenableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
mondrian.util.ConcatenableList<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>
public class ConcatenableList<T>
- extends AbstractList<T>
List backed by a collection of sub-lists.
- Since:
- december, 2007
- Author:
- Luis F. Canals
ConcatenableList
public ConcatenableList()
- Creates an empty ConcatenableList.
toArray
public <T2> T2[] toArray(T2[] a)
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>- Overrides:
toArray in class AbstractCollection<T>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<T>- Specified by:
toArray in interface List<T>- Overrides:
toArray in class AbstractCollection<T>
consolidate
public void consolidate()
- Performs a load of all elements into memory, removing sequential
access advantages.
addAll
public boolean addAll(Collection<? extends T> collection)
- Specified by:
addAll in interface Collection<T>- Specified by:
addAll in interface List<T>- Overrides:
addAll in class AbstractCollection<T>
get
public T get(int index)
- Specified by:
get in interface List<T>- Specified by:
get in class AbstractList<T>
add
public boolean add(T t)
- Specified by:
add in interface Collection<T>- Specified by:
add in interface List<T>- Overrides:
add in class AbstractList<T>
add
public void add(int index,
T t)
- Specified by:
add in interface List<T>- Overrides:
add in class AbstractList<T>
set
public T set(int index,
T t)
- Specified by:
set in interface List<T>- Overrides:
set in class AbstractList<T>
size
public int size()
- Specified by:
size in interface Collection<T>- Specified by:
size in interface List<T>- Specified by:
size in class AbstractCollection<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>- Specified by:
iterator in interface List<T>- Overrides:
iterator in class AbstractList<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<T>- Specified by:
isEmpty in interface List<T>- Overrides:
isEmpty in class AbstractCollection<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>- Specified by:
clear in interface List<T>- Overrides:
clear in class AbstractList<T>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<T>- Specified by:
hashCode in interface List<T>- Overrides:
hashCode in class AbstractList<T>