|
Fish & Chips Club 4.10.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objecthirondelle.fish.main.visit.Visit
public class Visit
Model Object for a weekly Visit to a Resto.
(This class is non-final only because of a test case for equals.)
| Constructor Summary | |
|---|---|
Visit(Id aId,
Id aRestaurantId,
Date aLunchDate,
SafeText aMessage)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object aThat)
|
Id |
getId()
Return the Visit id passed to the constructor. |
Date |
getLunchDate()
Return a defensive copy of the lunch date passed to the constructor. |
SafeText |
getMessage()
Return the message passed to the constructor. |
Code |
getRestaurant()
Return the item in CodeTable.RESTAURANTS corresponding to the restaurant id passed to the constructor. |
int |
hashCode()
|
String |
toString()
Intended for debugging only. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Visit(Id aId,
Id aRestaurantId,
Date aLunchDate,
SafeText aMessage)
throws ModelCtorException
aId - underlying database internal identifier (optional) 1..50 charactersaRestaurantId - required. This item is translated internally to its corresponding Code.aLunchDate - date for the visit (required), year in range 2006..2100. A defensive copy is made for this item.aMessage - shown to the Members on RSVP page (optional), 2..50 characters
ModelCtorException| Method Detail |
|---|
public Id getId()
public Code getRestaurant()
CodeTable.RESTAURANTS corresponding to the restaurant id passed to the constructor.
public Date getLunchDate()
public SafeText getMessage()
public String toString()
toString in class Objectpublic boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Fish & Chips Club 4.10.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||