mondrian.util
Class TraversalList<T>

java.lang.Object
  extended by mondrian.util.UnsupportedList<T[]>
      extended by 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
 

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.util.UnsupportedList
UnsupportedList.Itr, UnsupportedList.ItrUnknownSize, UnsupportedList.ListItr
 
Constructor Summary
TraversalList(List<T>[] lists, Class<T> clazz)
           
 
Method Summary
 T[] get(int index)
           
 Iterator<T[]> iterator()
           
 ListIterator<T[]> listIterator()
           
 ListIterator<T[]> listIterator(int index)
           
 T[] set(int index, T[] l)
           
 int size()
           
 List<T[]> subList(int first, int last)
           
 Object[] toArray()
           
<S> S[]
toArray(S[] a)
           
 
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
 

Constructor Detail

TraversalList

public TraversalList(List<T>[] lists,
                     Class<T> clazz)
Method Detail

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[]>

SourceForge.net_Logo