ch.panter.li.bi.util
Class ShieldableArrayList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by ch.panter.li.bi.util.ShieldableArrayList<T>
All Implemented Interfaces:
ReadOnlyCollection<T>, Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
Direct Known Subclasses:
ShieldableStack

public class ShieldableArrayList<T>
extends ArrayList<T>
implements ReadOnlyCollection<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ShieldableArrayList()
          Creates a new empty instance
ShieldableArrayList(Collection<T> initialContents)
          Creates a new instance and adds the given initial contents.
ShieldableArrayList(T... initialContents)
          Creates a new instance and adds the given initial contents.
 
Method Summary
 T[] itemsAsArray(T[] array)
          Returns an array containing all items of this instance according to the contract defined in java.util.Collection#toArray(T[] a).
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.panter.li.bi.util.ReadOnlyCollection
get, isEmpty, size
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ShieldableArrayList

public ShieldableArrayList()
Creates a new empty instance


ShieldableArrayList

public ShieldableArrayList(T... initialContents)
Creates a new instance and adds the given initial contents.


ShieldableArrayList

public ShieldableArrayList(Collection<T> initialContents)
Creates a new instance and adds the given initial contents.

Method Detail

itemsAsArray

public T[] itemsAsArray(T[] array)
Description copied from interface: ReadOnlyCollection
Returns an array containing all items of this instance according to the contract defined in java.util.Collection#toArray(T[] a).

Specified by:
itemsAsArray in interface ReadOnlyCollection<T>
Parameters:
array - the target array
Returns:
an array containing all items of this instance


Copyright 2007-2007 SourceForge. All Rights Reserved.