|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectContenitoreOrdinabile
public class ContenitoreOrdinabile
| Constructor Summary | |
|---|---|
ContenitoreOrdinabile()
|
|
| Method Summary | |
|---|---|
void |
aggiungi(java.lang.Comparable compObj)
Aggiunge un elemento ridimensionando l'array se necessario. |
boolean |
isEmpty()
verifica se il contenitore e' vuoto |
void |
makeEmpty()
rende vuoto il contenitore |
void |
ordina()
ordina l'archivio in modo che il metodo togliUltimo() restituisca il massimo |
int |
size()
|
java.lang.Object |
togliUltimo()
cancella e ritorna l'ultimo elemento dal contenitore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContenitoreOrdinabile()
| Method Detail |
|---|
public boolean isEmpty()
Container
isEmpty in interface Containerpublic void makeEmpty()
makeEmpty in interface Containerpublic int size()
size in interface Containerpublic void aggiungi(java.lang.Comparable compObj)
compObj - oggetto da aggiungere
public java.lang.Object togliUltimo()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - se l'array e' vuotopublic void ordina()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||