Class ConcurrentLinkedHashMap.DiscardingQueue
java.lang.Object
java.util.AbstractCollection<Object>
java.util.AbstractQueue<Object>
com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.DiscardingQueue
- Enclosing class:
ConcurrentLinkedHashMap<K,
V>
A queue that discards all additions and is always empty.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractQueue
addAll, clear, element, remove
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
-
Constructor Details
-
DiscardingQueue
DiscardingQueue()
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<Object>
- Specified by:
add
in interfaceQueue<Object>
- Overrides:
add
in classAbstractQueue<Object>
-
offer
-
poll
-
peek
-
size
public int size()- Specified by:
size
in interfaceCollection<Object>
- Specified by:
size
in classAbstractCollection<Object>
-
iterator
- Specified by:
iterator
in interfaceCollection<Object>
- Specified by:
iterator
in interfaceIterable<Object>
- Specified by:
iterator
in classAbstractCollection<Object>
-