mondrian.util
Class ConcatenableList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by mondrian.util.ConcatenableList<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>

public class ConcatenableList<T>
extends AbstractList<T>

Since:
december, 2007
Author:
Luis F. Canals
 

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ConcatenableList()
           
 
Method Summary
 void add(int index, T t)
          Adds elements at the middle of the list.
 boolean add(T t)
          Adds elements at the end of the list.
 boolean addAll(Collection<? extends T> collection)
           
 void clear()
           
 T get(int index)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 T set(int index, T t)
          Burnt method!
 int size()
           
 Object[] toArray()
          Performs a load of all elements into memory, removing sequential access advantages.
 
Methods inherited from class java.util.AbstractList
addAll, equals, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
contains, containsAll, remove, removeAll, retainAll, toArray
 

Constructor Detail

ConcatenableList

public ConcatenableList()
Method Detail

toArray

public Object[] toArray()
Performs a load of all elements into memory, removing sequential access advantages.

Specified by:
toArray in interface Collection<T>
Specified by:
toArray in interface List<T>
Overrides:
toArray in class AbstractCollection<T>

addAll

public boolean addAll(Collection<? extends T> collection)
Specified by:
addAll in interface Collection<T>
Specified by:
addAll in interface List<T>
Overrides:
addAll in class AbstractCollection<T>

get

public T get(int index)
Specified by:
get in interface List<T>
Specified by:
get in class AbstractList<T>

add

public boolean add(T t)
Adds elements at the end of the list.

Specified by:
add in interface Collection<T>
Specified by:
add in interface List<T>
Overrides:
add in class AbstractList<T>

add

public void add(int index,
                T t)
Adds elements at the middle of the list.

Specified by:
add in interface List<T>
Overrides:
add in class AbstractList<T>

set

public T set(int index,
             T t)
Burnt method!

Specified by:
set in interface List<T>
Overrides:
set in class AbstractList<T>

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface List<T>
Specified by:
size in class AbstractCollection<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 AbstractList<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<T>
Specified by:
isEmpty in interface List<T>
Overrides:
isEmpty in class AbstractCollection<T>

clear

public void clear()
Specified by:
clear in interface Collection<T>
Specified by:
clear in interface List<T>
Overrides:
clear in class AbstractList<T>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<T>
Specified by:
hashCode in interface List<T>
Overrides:
hashCode in class AbstractList<T>

SourceForge.net_Logo