public class Reservation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
confirmation |
private Date |
endDate |
private long |
id |
private Person |
person |
private Date |
startDate |
private long |
version |
Constructor and Description |
---|
Reservation() |
Reservation(long id,
long version,
String confirmation,
Person person,
Date startDate,
Date endDate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getConfirmation() |
Date |
getEndDate() |
long |
getId() |
Person |
getPerson() |
Date |
getStartDate() |
long |
getVersion() |
int |
hashCode() |
private static boolean |
sameDate(Date lhsDate,
Date rhsDate) |
void |
setConfirmation(String confirmation) |
void |
setEndDate(Date endDate) |
private void |
setId(long id) |
void |
setPerson(Person person) |
void |
setStartDate(Date startDate) |
void |
setVersion(long version) |
String |
toString() |
private long id
private long version
private String confirmation
private Date startDate
private Date endDate
private Person person
public long getId()
private void setId(long id)
public String getConfirmation()
public void setConfirmation(String confirmation)
public Person getPerson()
public void setPerson(Person person)
public long getVersion()
public void setVersion(long version)
public Date getEndDate()
public void setEndDate(Date endDate)
public Date getStartDate()
public void setStartDate(Date startDate)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.