public class SizedList<T> extends ArrayList<T>
modCount
Constructor and Description |
---|
SizedList()
constructor
|
SizedList(int size)
overloaded constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T item)
Add an item to the list, if the list is already full then and item is also removed from the
end of the list.
|
boolean |
addAll(Collection<? extends T> c) |
add, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public SizedList()
public SizedList(int size)
size
- public boolean add(T item)
add
in interface Collection<T>
add
in interface List<T>
add
in class ArrayList<T>
Collection.add(java.lang.Object)
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in interface List<T>
addAll
in class ArrayList<T>
Collection.addAll(java.util.Collection)
Copyright © 2003-2016 Sakai Foundation. All Rights Reserved.