Example #1
0
 public void enqueue(T newEntry) {
   if (newEntry != null) myDeque.addToBack(newEntry);
 }
Example #2
0
 public void clear() {
   myDeque.clear();
 }
Example #3
0
  public T getFront() {
    if (!myDeque.isEmpty()) return myDeque.getFront();

    return null;
  }
Example #4
0
 public boolean isEmpty() {
   return myDeque.isEmpty();
 }
Example #5
0
  public T dequeue() {
    if (!myDeque.isEmpty()) return myDeque.removeFront();

    return null;
  }