Package com.weicoder.common.queue
Class OnlyQueue<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.ConcurrentLinkedQueue<E>
-
- com.weicoder.common.queue.OnlyQueue<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Queue<E>
public class OnlyQueue<E> extends java.util.concurrent.ConcurrentLinkedQueue<E>唯一队列值 基础并发队列ConcurrentLinkedQueue 确保元素唯一- Author:
- WD
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnlyQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(java.util.Collection<? extends E> c)-
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
clear, contains, forEach, isEmpty, iterator, offer, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
add
public boolean add(E e)
-
-