Package mondrian.util
Class ConcatenableList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- mondrian.util.ConcatenableList<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
public class ConcatenableList<T> extends java.util.AbstractList<T>
List backed by a collection of sub-lists.- Since:
- december, 2007
- Author:
- Luis F. Canals
-
-
Constructor Summary
Constructors Constructor Description ConcatenableList()
Creates an empty ConcatenableList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T t)
boolean
add(T t)
boolean
addAll(java.util.Collection<? extends T> collection)
void
clear()
void
consolidate()
Performs a load of all elements into memory, removing sequential access advantages.T
get(int index)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<T>
iterator()
T
set(int index, T t)
int
size()
java.lang.Object[]
toArray()
<T2> T2[]
toArray(T2[] a)
-
Methods inherited from class java.util.AbstractList
addAll, equals, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toString
-
-
-
-
Method Detail
-
toArray
public <T2> T2[] toArray(T2[] a)
-
toArray
public java.lang.Object[] toArray()
-
consolidate
public void consolidate()
Performs a load of all elements into memory, removing sequential access advantages.
-
addAll
public boolean addAll(java.util.Collection<? extends T> collection)
-
get
public T get(int index)
-
add
public boolean add(T t)
-
add
public void add(int index, T t)
-
size
public int size()
-
iterator
public java.util.Iterator<T> iterator()
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
-