Package pascal.taie.util.collection
Class SetQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
pascal.taie.util.collection.SetQueue<E>
- Type Parameters:
E
- type of elements.
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Queue<E>
A Queue implementation which contains no duplicate elements.
- See Also:
-
Constructor Summary
-
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, toArray
-
Constructor Details
-
SetQueue
public SetQueue()
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in classAbstractCollection<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in classAbstractCollection<E>
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classAbstractQueue<E>
-
offer
-
poll
-
peek
-