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 void
add(java.lang.Object obj)
boolean
hasNext()
Iterator4
iterator()
java.lang.Object
next()
java.lang.Object
nextMatching(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:Queue4
Returns the next object in the queue that matches the specified condition. The operation is always NON-BLOCKING.- Specified by:
nextMatching
in interfaceQueue4
- Parameters:
condition
- the object must satisfy to be returned- Returns:
- the object satisfying the condition or null if none does
-
-