Package com.jackmeng.core.util
Class use_SlowSetQueue<T>
java.lang.Object
com.jackmeng.core.util.use_SlowSetQueue<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Queue<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> arg0) void
clear()
boolean
boolean
containsAll
(Collection<?> arg0) element()
boolean
isEmpty()
iterator()
boolean
peek()
poll()
remove()
boolean
boolean
removeAll
(Collection<?> arg0) boolean
retainAll
(Collection<?> arg0) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] arg0) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
queue
-
set
-
-
Constructor Details
-
use_SlowSetQueue
public use_SlowSetQueue()
-
-
Method Details
-
add
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
remove
- Specified by:
remove
in interfaceQueue<T>
- Throws:
NoSuchElementException
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
iterator
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArray
in interfaceCollection<T>
-
element
-
offer
-
peek
-
poll
-