/*
* Created on 01/08/2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package sce.deque;
import sce.list.DListImpl;
/**
* @author TOSHIBA
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class Deque {
private DListImpl storage;
public Deque() {
this.storage = new DListImpl();
}
public void insertFirst(Object parObject) {
this.storage.insertFirst(parObject);
}
public void insertLast(Object parObject) {
this.storage.insertLast(parObject);
}
public Object removeFirst() {
return this.storage.removeFirst();
}
public Object removeLast() {
return this.storage.removeLast();
}
public Object first() {
return this.storage.getFirst();
}
public Object last() {
return this.storage.getLast();
}
public int getSize() {
return this.storage.getSize();
}
public boolean isEmpty() {
return this.storage.isEmpty();
}
}