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
Modifier and TypeClassDescriptionclass
A blocking iterator that takes elements from aCDOQueryQueue
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
void
close()
Comparator<?>
boolean
boolean
containsAll
(Collection<?> c) element()
boolean
int
hashCode()
boolean
isClosed()
boolean
isEmpty()
iterator()
boolean
boolean
peek()
poll()
void
int
remove()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
setException
(Throwable exception) int
size()
take()
Object[]
toArray()
Object[]
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
close
in interfaceorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceorg.eclipse.net4j.util.collection.Closeable
-
add
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
-
contains
- Specified by:
contains
in interfaceCollection<E>
-
element
-
equals
- Specified by:
equals
in interfaceCollection<E>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<E>
- Overrides:
hashCode
in classObject
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<E>
-
iterator
-
offer
-
offer
-
peek
-
poll
- Throws:
InterruptedException
-
put
-
remainingCapacity
public int remainingCapacity() -
remove
-
remove
- Specified by:
remove
in interfaceCollection<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
-
take
- Throws:
InterruptedException
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
-
toString
-
poll
-
comparator
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
-