| Constructor and Description |
|---|
NoDuplicatesQueue(Queue4 queue) |
| Modifier and Type | Method and 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.
|
public NoDuplicatesQueue(Queue4 queue)
public java.lang.Object nextMatching(Predicate4 condition)
Queue4nextMatching in interface Queue4condition - the object must satisfy to be returned