|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--es04.BookingNote
Questa classe rappresenta una prenotazione, caratterizzata dal nome dello spettacolo e numero di posti prenotati. Una prenotazione e' caratterizzata in modo univoco da un identificatore (una stringa), generato automaticamente quando un oggetto della classe viene instanziato.
Constructor Summary | |
BookingNote(java.lang.String name,
int[] seats)
Crea una prenotazione contenente informazioni sul nome dello spettacolo e i posti prenotati |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Testa l'uguaglianza di prenotazioni. |
java.lang.String |
getId()
Restituisce l'identificatore che caratterizza univocamente la prenotazione. |
java.lang.String |
getName()
Restituisce il nome dello spettacolo a cui fa riferimento la prenotazione |
int[] |
getSeats()
Restituisce l'elenco dei posti prenotati nella prenotazione |
java.lang.String |
toString()
Restituisce la rappresentazione testuale di una prenotazione, che coincide con il suo identificatore univoco . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BookingNote(java.lang.String name, int[] seats)
name
- e' il nome dello spettacolo a cui si riferisce la prenotazioneseats
- e' l'elenco dei posti prenotatiMethod Detail |
public java.lang.String getId()
public java.lang.String getName()
public int[] getSeats()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- prenotazione da testare
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 |