Package com.db4o.foundation
Interface Queue4<E>
-
- All Known Subinterfaces:
BlockingQueue4<T>,PausableBlockingQueue4<T>,TimeoutBlockingQueue4<T>
- All Known Implementing Classes:
BlockingQueue,DelegatingBlockingQueue,NoDuplicatesQueue,NonblockingQueue,PausableBlockingQueue,TimeoutBlockingQueue
public interface Queue4<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(E obj)booleanhasNext()Iterator4iterator()Enext()EnextMatching(Predicate4<E> condition)Returns the next object in the queue that matches the specified condition.
-
-
-
Method Detail
-
add
void add(E obj)
-
next
E next()
-
hasNext
boolean hasNext()
-
nextMatching
E nextMatching(Predicate4<E> condition)
Returns the next object in the queue that matches the specified condition. The operation is always NON-BLOCKING.- Parameters:
condition- the object must satisfy to be returned- Returns:
- the object satisfying the condition or null if none does
-
iterator
Iterator4 iterator()
-
-