public class BoundedSortedList<E extends Comparable<E>> extends ArrayList<E> implements Serializable
modCount
Constructor and Description |
---|
BoundedSortedList(int maxSize) |
BoundedSortedList(int maxSize,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
E |
first() |
E |
last() |
int |
maxSize()
Returns the maximum size allowed for the bounded list
|
addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public BoundedSortedList(int maxSize, int initialCapacity)
public BoundedSortedList(int maxSize)
public boolean add(E e)
add
in interface Collection<E extends Comparable<E>>
add
in interface List<E extends Comparable<E>>
add
in class ArrayList<E extends Comparable<E>>
public E first()
public E last()
public void add(int index, E element)
add
in interface List<E extends Comparable<E>>
add
in class ArrayList<E extends Comparable<E>>
public int maxSize()
Copyright © 2017. All rights reserved.