|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectContenitoreOrdinatoObj
public class ContenitoreOrdinatoObj
| Constructor Summary | |
|---|---|
ContenitoreOrdinatoObj()
|
|
| Method Summary | |
|---|---|
void |
aggiungi(java.lang.Object object)
Aggiunge un elemento comparabile, ridimensionando l'array se necessario. |
boolean |
isEmpty()
verifica se il contenitore e' vuoto |
void |
makeEmpty()
rende vuoto il contenitore |
int |
size()
|
java.lang.Object |
togliMax()
ritorna il valore massimo del contenitore (massimo nel senso di compareTo()), cancellandolo dal contenitore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContenitoreOrdinatoObj()
| 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.Object object)
object - oggetto comparabile da aggiungere
public java.lang.Object togliMax()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - se l'array e' vuoto
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||