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 voidadd(T obj)booleanhasNext()Iterator4<T>iterator()Tnext()TnextMatching(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:Queue4Returns the next object in the queue that matches the specified condition. The operation is always NON-BLOCKING.- Specified by:
nextMatchingin interfaceQueue4<T>- Parameters:
condition- the object must satisfy to be returned- Returns:
- the object satisfying the condition or null if none does
-
-