public class SynchronizedEvictingQueue<E> extends Object implements Queue<E>
| Constructor and Description |
|---|
SynchronizedEvictingQueue(int maxSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
element() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic SynchronizedEvictingQueue(int maxSize)
maxSize - Maximum size of the queuepublic int size()
size in interface Collection<E>Collection.size()public boolean isEmpty()
isEmpty in interface Collection<E>Collection.isEmpty()public boolean contains(Object o)
contains in interface Collection<E>Collection.contains(java.lang.Object)public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>Collection.iterator()public Object[] toArray()
toArray in interface Collection<E>Collection.toArray()public <T> T[] toArray(T[] a)
toArray in interface Collection<E>Collection.toArray(java.lang.Object[])public boolean remove(Object o)
remove in interface Collection<E>Collection.remove(java.lang.Object)public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>Collection.containsAll(java.util.Collection)public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>Collection.addAll(java.util.Collection)public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>Collection.removeAll(java.util.Collection)public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>Collection.retainAll(java.util.Collection)public void clear()
clear in interface Collection<E>Collection.clear()public boolean add(E e)
add in interface Collection<E>add in interface Queue<E>Queue.add(java.lang.Object)public boolean offer(E e)
offer in interface Queue<E>Queue.offer(java.lang.Object)public E remove()
remove in interface Queue<E>Queue.remove()public E poll()
poll in interface Queue<E>Queue.poll()public E element()
element in interface Queue<E>Queue.element()public E peek()
peek in interface Queue<E>Queue.peek()Copyright © 2018 Stackify, LLC. All rights reserved.