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>
- Since:
- december, 2007
- Author:
- Luis F. Canals
-
-
ConcatenableList
public ConcatenableList()
toArray
public Object[] toArray()
- Performs a load of all elements into memory, removing sequential
access advantages.
- Specified by:
toArray
in interface Collection<T>
- Specified by:
toArray
in interface List<T>
- Overrides:
toArray
in class AbstractCollection<T>
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)
- Adds elements at the end of the list.
- 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)
- Adds elements at the middle of the list.
- Specified by:
add
in interface List<T>
- Overrides:
add
in class AbstractList<T>
set
public T set(int index,
T t)
- Burnt method!
- 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>