mondrian.util
Class TraversalList<T>
java.lang.Object
mondrian.util.UnsupportedList<T[]>
mondrian.util.TraversalList<T>
- All Implemented Interfaces:
- java.lang.Iterable<T[]>, java.util.Collection<T[]>, java.util.List<T[]>
public class TraversalList<T>
- extends UnsupportedList<T[]>
Implementation of List
for transposing an array of
lists.
- Since:
- Dec, 2007
- Version:
- $Id: //open/mondrian/src/main/mondrian/util/TraversalList.java#4 $
- Author:
- Luis F. Canals
Constructor Summary |
TraversalList(java.util.List<T>[] lists,
java.lang.Class<T> clazz)
|
Methods inherited from class mondrian.util.UnsupportedList |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TraversalList
public TraversalList(java.util.List<T>[] lists,
java.lang.Class<T> clazz)
get
public T[] get(int index)
- Specified by:
get
in interface java.util.List<T[]>
- Overrides:
get
in class UnsupportedList<T[]>
iterator
public java.util.Iterator<T[]> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T[]>
- Specified by:
iterator
in interface java.util.Collection<T[]>
- Specified by:
iterator
in interface java.util.List<T[]>
- Overrides:
iterator
in class UnsupportedList<T[]>
listIterator
public java.util.ListIterator<T[]> listIterator(int index)
- Specified by:
listIterator
in interface java.util.List<T[]>
- Overrides:
listIterator
in class UnsupportedList<T[]>
listIterator
public java.util.ListIterator<T[]> listIterator()
- Specified by:
listIterator
in interface java.util.List<T[]>
- Overrides:
listIterator
in class UnsupportedList<T[]>
size
public int size()
- Specified by:
size
in interface java.util.Collection<T[]>
- Specified by:
size
in interface java.util.List<T[]>
- Overrides:
size
in class UnsupportedList<T[]>
subList
public java.util.List<T[]> subList(int first,
int last)
- Specified by:
subList
in interface java.util.List<T[]>
- Overrides:
subList
in class UnsupportedList<T[]>
toArray
public <S> S[] toArray(S[] a)
- Specified by:
toArray
in interface java.util.Collection<T[]>
- Specified by:
toArray
in interface java.util.List<T[]>
- Overrides:
toArray
in class UnsupportedList<T[]>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<T[]>
- Specified by:
toArray
in interface java.util.List<T[]>
- Overrides:
toArray
in class UnsupportedList<T[]>
set
public T[] set(int index,
T[] l)
- Specified by:
set
in interface java.util.List<T[]>
- Overrides:
set
in class UnsupportedList<T[]>