/** * Copyright (c): Uwe Schmidt, FH Wedel * * You may study, modify and distribute this source code * FOR NON-COMMERCIAL PURPOSES ONLY. * This copyright message has to remain unchanged. * * Note that this document is provided 'as is', * WITHOUT WARRANTY of any kind either expressed or implied. */ /** * * @author Uwe Schmidt * * ein Interface fuer * den ADT stack * * es werden nur die Funktionskoepfe festgelegt * alle Funktionen sind automatisch abstract */ //-------------------- public interface StackInterface { public boolean isEmpty(); public Object top(); public void push(Object o); public void pop(); //-------------------- // die Vorbedingungen fuer // pop und top koennen hier // nicht implementiert werden //-------------------- public boolean prePop(); public boolean preTop(); } //--------------------