mondrian.util
Class TraversalList<T>
java.lang.Object
mondrian.util.UnsupportedList<T[]>
mondrian.util.TraversalList<T>
- All Implemented Interfaces:
- Iterable<T[]>, Collection<T[]>, List<T[]>
public class TraversalList<T>
- extends UnsupportedList<T[]>
Implementation of List
for transposing an array of
lists.
- Since:
- Dec, 2007
- Author:
- Luis F. Canals
-
-
Methods inherited from class mondrian.util.UnsupportedList |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll |
TraversalList
public TraversalList(List<T>[] lists,
Class<T> clazz)
get
public T[] get(int index)
- Specified by:
get
in interface List<T[]>
- Overrides:
get
in class UnsupportedList<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 UnsupportedList<T[]>
listIterator
public ListIterator<T[]> listIterator(int index)
- Specified by:
listIterator
in interface List<T[]>
- Overrides:
listIterator
in class UnsupportedList<T[]>
listIterator
public ListIterator<T[]> listIterator()
- Specified by:
listIterator
in interface List<T[]>
- Overrides:
listIterator
in class UnsupportedList<T[]>
size
public int size()
- Specified by:
size
in interface Collection<T[]>
- Specified by:
size
in interface List<T[]>
- Overrides:
size
in class UnsupportedList<T[]>
subList
public List<T[]> subList(int first,
int last)
- Specified by:
subList
in interface List<T[]>
- Overrides:
subList
in class UnsupportedList<T[]>
toArray
public <S> S[] toArray(S[] a)
- Specified by:
toArray
in interface Collection<T[]>
- Specified by:
toArray
in interface List<T[]>
- Overrides:
toArray
in class UnsupportedList<T[]>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<T[]>
- Specified by:
toArray
in interface List<T[]>
- Overrides:
toArray
in class UnsupportedList<T[]>
set
public T[] set(int index,
T[] l)
- Specified by:
set
in interface List<T[]>
- Overrides:
set
in class UnsupportedList<T[]>