mondrian.util
Class TraversalList<T>

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

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

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

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads