Package 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>
List backed by a collection of sub-lists.
- Since:
- december, 2007
- Author:
- Luis F. Canals
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(Collection<? extends T> collection) voidclear()voidPerforms a load of all elements into memory, removing sequential access advantages.get(int index) inthashCode()booleanisEmpty()iterator()intsize()Object[]toArray()<T2> T2[]toArray(T2[] a) Methods inherited from class java.util.AbstractList
addAll, equals, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Constructor Details
-
ConcatenableList
public ConcatenableList()Creates an empty ConcatenableList.
-
-
Method Details
-
toArray
public <T2> T2[] toArray(T2[] a) - Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Overrides:
toArrayin classAbstractCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Overrides:
toArrayin classAbstractCollection<T>
-
consolidate
public void consolidate()Performs a load of all elements into memory, removing sequential access advantages. -
addAll
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractCollection<T>
-
get
-
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
add
-
set
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
iterator
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Overrides:
hashCodein classAbstractList<T>
-