-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable,java.util.Collection,java.util.List,java.util.RandomAccess,java.util.SequencedCollection
public class FixedSizeArrayList<T> extends ArrayList<T>
A simple extends of ArrayList that is size limited. Add an item if the list is already full will result in deleting the first one.
-
-
Constructor Summary
Constructors Constructor Description FixedSizeArrayList(int maxSize)
-
Method Summary
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize -
Methods inherited from class java.util.AbstractCollection
containsAll, toString -
Methods inherited from class java.util.Collection
parallelStream, stream -
Methods inherited from class java.lang.Iterable
iterator, spliterator -
Methods inherited from class java.util.List
copyOf, of, reversed -
Methods inherited from class java.util.SequencedCollection
reversed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-