Package com.db4o.foundation
Class NoDuplicatesQueue
- java.lang.Object
-
- com.db4o.foundation.NoDuplicatesQueue
-
-
Constructor Summary
Constructors Constructor Description NoDuplicatesQueue(Queue4 queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Object obj)booleanhasNext()Iterator4iterator()java.lang.Objectnext()java.lang.ObjectnextMatching(Predicate4 condition)Returns the next object in the queue that matches the specified condition.
-
-
-
Constructor Detail
-
NoDuplicatesQueue
public NoDuplicatesQueue(Queue4 queue)
-
-
Method Detail
-
nextMatching
public java.lang.Object nextMatching(Predicate4 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- Parameters:
condition- the object must satisfy to be returned- Returns:
- the object satisfying the condition or null if none does
-
-