Class TArrayBlockingQueue<E>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractCollection<E>
org.teavm.classlib.java.util.TAbstractQueue<E>
org.teavm.classlib.java.util.concurrent.TArrayBlockingQueue<E>
- All Implemented Interfaces:
TIterable<E>,TBlockingQueue<E>,TCollection<E>,TQueue<E>
-
Constructor Summary
ConstructorsConstructorDescriptionTArrayBlockingQueue(int capacity) TArrayBlockingQueue(int capacity, boolean fair) TArrayBlockingQueue(int capacity, boolean fair, Collection<? extends E> c) -
Method Summary
Methods inherited from class org.teavm.classlib.java.util.TAbstractQueue
addAll, element, removeMethods inherited from class org.teavm.classlib.java.util.TAbstractCollection
containsAll, removeAll, retainAll, toStringMethods inherited from class org.teavm.classlib.java.lang.TObject
clone, equals, equals0, finalize, getClass0, hashCode, notify0, notifyAll0, wait0, wait0, waitImplMethods inherited from interface org.teavm.classlib.java.util.TCollection
addAll, containsAll, removeAll, removeIf, retainAll, spliterator, stream, toArray
-
Constructor Details
-
TArrayBlockingQueue
public TArrayBlockingQueue(int capacity) -
TArrayBlockingQueue
public TArrayBlockingQueue(int capacity, boolean fair) -
TArrayBlockingQueue
-
-
Method Details
-
add
- Specified by:
addin interfaceTCollection<E>- Overrides:
addin classTAbstractQueue<E>
-
offer
-
put
- Specified by:
putin interfaceTBlockingQueue<E>- Throws:
InterruptedException
-
offer
- Specified by:
offerin interfaceTBlockingQueue<E>- Throws:
InterruptedException
-
poll
-
take
- Specified by:
takein interfaceTBlockingQueue<E>- Throws:
InterruptedException
-
poll
- Specified by:
pollin interfaceTBlockingQueue<E>- Throws:
InterruptedException
-
peek
-
size
public int size()- Specified by:
sizein interfaceTCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTCollection<E>- Overrides:
isEmptyin classTAbstractCollection<E>
-
remainingCapacity
public int remainingCapacity()- Specified by:
remainingCapacityin interfaceTBlockingQueue<E>
-
remove
- Specified by:
removein interfaceTCollection<E>- Overrides:
removein classTAbstractCollection<E>
-
contains
- Specified by:
containsin interfaceTCollection<E>- Overrides:
containsin classTAbstractCollection<E>
-
toArray
- Specified by:
toArrayin interfaceTCollection<E>- Overrides:
toArrayin classTAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceTCollection<E>- Overrides:
toArrayin classTAbstractCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceTCollection<E>- Overrides:
clearin classTAbstractQueue<E>
-
drainTo
- Specified by:
drainToin interfaceTBlockingQueue<E>
-
drainTo
- Specified by:
drainToin interfaceTBlockingQueue<E>
-
iterator
-