© APSIS GmbH
, Polling,
2000
Schnittstelle aus der Bibliothek für das Lehrbuch Programmieren mit Java
Sie wird durch die Klassen StapelGen, StapelPol und StapelListe implementiert.
Dokumentation
Programmtext mit Dokumentation
package lehrbuch.kapitel9;
public interface Stapel {
public void entleeren();
public void eintragen(final Object element) throws VollAusnahme;
public Object lesen() throws LeerAusnahme;
public void entfernen() throws LeerAusnahme;
public boolean istLeer();
public boolean istVoll();
// public void kopieren(final Stapel quelle) throws VollAusnahme; // public boolean istGleich(final Stapel stapel); // const // public void speichern(String dateiname) throws DateiAusnahme; // const // public void laden(final String dateiname) throws DateiAusnahme; // anstelle des Iterators: // public void allesEntleeren(String rueckruf); }
© APSIS GmbH
, Polling,
2000