ch.panter.li.bi.util
Class ShieldableArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
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
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 |
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.
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.