mondrian.util
Class TraversalList<T>
java.lang.Object
mondrian.util.UnsupportedList<List<T>>
mondrian.util.TraversalList<T>
- All Implemented Interfaces:
- Iterable<List<T>>, Collection<List<T>>, List<List<T>>
public class TraversalList<T>
- extends UnsupportedList<List<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 List<T> get(int index)
- Specified by:
get in interface List<List<T>>- Overrides:
get in class UnsupportedList<List<T>>
iterator
public Iterator<List<T>> iterator()
- Specified by:
iterator in interface Iterable<List<T>>- Specified by:
iterator in interface Collection<List<T>>- Specified by:
iterator in interface List<List<T>>- Overrides:
iterator in class UnsupportedList<List<T>>
listIterator
public ListIterator<List<T>> listIterator(int index)
- Specified by:
listIterator in interface List<List<T>>- Overrides:
listIterator in class UnsupportedList<List<T>>
listIterator
public ListIterator<List<T>> listIterator()
- Specified by:
listIterator in interface List<List<T>>- Overrides:
listIterator in class UnsupportedList<List<T>>
size
public int size()
- Specified by:
size in interface Collection<List<T>>- Specified by:
size in interface List<List<T>>- Overrides:
size in class UnsupportedList<List<T>>
subList
public List<List<T>> subList(int first,
int last)
- Specified by:
subList in interface List<List<T>>- Overrides:
subList in class UnsupportedList<List<T>>
toArray
public <S> S[] toArray(S[] a)
- Specified by:
toArray in interface Collection<List<T>>- Specified by:
toArray in interface List<List<T>>- Overrides:
toArray in class UnsupportedList<List<T>>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<List<T>>- Specified by:
toArray in interface List<List<T>>- Overrides:
toArray in class UnsupportedList<List<T>>
set
public List<T> set(int index,
List<T> l)
- Specified by:
set in interface List<List<T>>- Overrides:
set in class UnsupportedList<List<T>>