public class RingBuffer<T> extends ArrayDeque<T>
Constructor and Description |
---|
RingBuffer(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T item) |
boolean |
addAll(Collection<? extends T> collection) |
void |
addFirst(T item) |
void |
addLast(T item) |
void |
push(T item) |
clear, clone, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
containsAll, removeAll, retainAll, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public boolean add(T item)
public void addFirst(T item)
public void addLast(T item)
public boolean addAll(Collection<? extends T> collection)
addAll
in interface Collection<T>
addAll
in class AbstractCollection<T>
© 2019 Mapbox. All rights reserved.