blob: f04fb8b7086c5e2c4356998c3988ecf13701065a [file] [log] [blame]
package annotations.util;
/**
* Stack that creates new stacks rather than modify data in place.
*
* @author dbro
* @param <E> type of stack elements
*/
public interface PersistentStack<E> {
public boolean isEmpty();
public E peek();
public PersistentStack<E> pop();
public PersistentStack<E> push(E elem);
public int size();
}