public class UniqueSeenQueue<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<T> |
ll |
private java.util.Set<T> |
llItems |
private java.util.Set<T> |
seen |
Constructor and Description |
---|
UniqueSeenQueue(java.util.Collection<? extends T> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T c) |
boolean |
add(T c,
boolean ifUnseen) |
void |
addAll(java.util.Collection<? extends T> ts) |
boolean |
addIfUnseen(T c) |
boolean |
isEmpty() |
T |
removeFirst() |