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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> arg0) voidclear()booleanbooleancontainsAll(Collection<?> arg0) element()booleanisEmpty()iterator()booleanpeek()poll()remove()booleanbooleanremoveAll(Collection<?> arg0) booleanretainAll(Collection<?> arg0) intsize()Object[]toArray()<T> T[]toArray(T[] arg0) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
addAllin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceQueue<T>- Throws:
NoSuchElementException
-
remove
- Specified by:
removein interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
iterator
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<T>
-
element
-
offer
-
peek
-
poll
-