add method

void add(
  1. T t
)

Implementation

void add(T t) {
  if (!contains(t)) {
    queue.add(t);
    ++size;
  }
}