Package com.basiscomponents.db
Class BBArrayList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- com.basiscomponents.db.BBArrayList<T>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
public class BBArrayList<T> extends ArrayList<T>
A java.util.ArrayList providing the same method names as the BBjVector class. The class doesn't add any additional features to the list itself.
This class was originally created to replace the BBjVector usage in the basiscomponents.- See Also:
- BBjVector documentation, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description BBArrayList(Collection<T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addItem(T element)
Calls theArrayList.add(Object)
method.T
getItem(int index)
Calls theArrayList.get(int)
method.void
insertItem(int index, T element)
Calls theArrayList.add(int, Object)
method.Object
removeItem(int index)
Calls theArrayList.remove(int)
method.Object
setItem(int index, T element)
Calls theArrayList.set(int, Object)
method.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
BBArrayList
public BBArrayList(Collection<T> c)
-
-
Method Detail
-
addItem
public boolean addItem(T element)
Calls theArrayList.add(Object)
method.- Parameters:
element
- The element to be appended to this list- Returns:
- true (as specified by
Collection.add(E)
)
-
getItem
public T getItem(int index)
Calls theArrayList.get(int)
method.- Parameters:
index
- The index of the element to return.- Returns:
- the element at the specified position in this list.
-
insertItem
public void insertItem(int index, T element)
Calls theArrayList.add(int, Object)
method.- Parameters:
index
- The index at which the specified element is to be inserted.element
- The object to be inserted.
-
removeItem
public Object removeItem(int index)
Calls theArrayList.remove(int)
method.- Parameters:
index
- The index of the element to be removed.- Returns:
- element The element that was removed from the list.
-
setItem
public Object setItem(int index, T element)
Calls theArrayList.set(int, Object)
method.- Parameters:
index
- The index of the element to replace.element
- The element to be stored at the specified position- Returns:
- the element previously at the specified position.
-
-