Package org.eclipse.emf.cdo.common.util
Class CDOQueryQueue<E>
java.lang.Object
org.eclipse.emf.cdo.common.util.CDOQueryQueue<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Queue<E>,org.eclipse.net4j.util.collection.Closeable
public class CDOQueryQueue<E>
extends Object
implements Queue<E>, org.eclipse.net4j.util.collection.Closeable
The
queue that represents the result of a CDOQuery.- Since:
- 2.0
- Author:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA blocking iterator that takes elements from aCDOQueryQueue. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()voidclose()Comparator<?>booleanbooleancontainsAll(Collection<?> c) element()booleaninthashCode()booleanisClosed()booleanisEmpty()iterator()booleanbooleanpeek()poll()voidintremove()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) voidsetException(Throwable exception) intsize()take()Object[]toArray()Object[]toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
CDOQueryQueue
public CDOQueryQueue()
-
-
Method Details
-
setException
-
close
public void close()- Specified by:
closein interfaceorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.eclipse.net4j.util.collection.Closeable
-
add
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
element
-
equals
- Specified by:
equalsin interfaceCollection<E>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Overrides:
hashCodein classObject
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
iterator
-
offer
-
offer
-
peek
-
poll
- Throws:
InterruptedException
-
put
-
remainingCapacity
public int remainingCapacity() -
remove
-
remove
- Specified by:
removein interfaceCollection<E>
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
take
- Throws:
InterruptedException
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toString
-
poll
-
comparator
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-