E - generic list element typepublic class LimitedQueue<E> extends LinkedList<E>
modCount| Constructor and Description |
|---|
LimitedQueue(int limit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o) |
int |
getLimit() |
int |
setLimit(int newLimit) |
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic LimitedQueue(int limit)
limit - length of queue in terms of number of elementspublic boolean add(E o)
public int getLimit()
public int setLimit(int newLimit)
newLimit - length of queue in terms of number of elementsCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.