Package com.db4o.foundation
Class NonblockingQueue<T>
- java.lang.Object
-
- com.db4o.foundation.NonblockingQueue<T>
-
-
Constructor Summary
Constructors Constructor Description NonblockingQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T obj)
boolean
hasNext()
Iterator4<T>
iterator()
T
next()
T
nextMatching(Predicate4<T> condition)
Returns the next object in the queue that matches the specified condition.
-
-
-
Method Detail
-
nextMatching
public T nextMatching(Predicate4<T> condition)
Description copied from interface:Queue4
Returns the next object in the queue that matches the specified condition. The operation is always NON-BLOCKING.- Specified by:
nextMatching
in interfaceQueue4<T>
- Parameters:
condition
- the object must satisfy to be returned- Returns:
- the object satisfying the condition or null if none does
-
-