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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(Collection<? extends T> collection) void
clear()
void
Performs a load of all elements into memory, removing sequential access advantages.get
(int index) int
hashCode()
boolean
isEmpty()
iterator()
int
size()
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceList<T>
- Overrides:
toArray
in classAbstractCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceList<T>
- Overrides:
toArray
in classAbstractCollection<T>
-
consolidate
public void consolidate()Performs a load of all elements into memory, removing sequential access advantages. -
addAll
- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in classAbstractCollection<T>
-
get
-
add
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
add
-
set
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
iterator
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
- Specified by:
isEmpty
in interfaceList<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceList<T>
- Overrides:
hashCode
in classAbstractList<T>
-