|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStackAL<T>
public class StackAL<T>
Classe che implementa una struttura LIFO. Non accetta elementi nulli.
Constructor Summary | |
---|---|
StackAL()
|
Method Summary | |
---|---|
boolean |
isEmpty()
Metodo di interrogazione sulla condizione di stack vuoto. |
boolean |
isFull()
Metodo di interrogazione sulla condizione di stack pieno. |
T |
pop()
Metodo di lettura distruttiva. |
boolean |
push(T elem)
Metodo di inserimento. |
int |
size()
Metodo di interrogazione sul numero di elementi contenuti. |
java.lang.String |
toString()
Metodo per la rappresentazione stringa dello stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StackAL()
Method Detail |
---|
public boolean push(T elem)
public T pop()
public int size()
public boolean isEmpty()
public boolean isFull()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |