|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--chat.ComparaContatto
Classe di utilità per ordinare gli elementi all'interno di un
Database
; contiene solo un metodo che effettua
il confronto fra due oggetti di tipo Contatto
,
ordinandoli in senso crescente sulla base del nome()
.
Database
,
Contatto
,
Contatto.nome()
Constructor Summary | |
(package private) |
ComparaContatto()
|
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Realizza il confronto fra due Contatto . |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
ComparaContatto()
Method Detail |
public int compare(java.lang.Object o1, java.lang.Object o2)
Contatto
.Contatto o1
sia minore, uguale o maggiore
del Contatto o2
, valutandolo sulla base
dell'attributo nome()
.Contatto
,
Contatto.nome()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |