Package org.myorg.jpatickets.bo
Class Address
- java.lang.Object
-
- org.myorg.jpatickets.bo.Address
-
- All Implemented Interfaces:
Serializable
@Embeddable public class Address extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCity()
String
getState()
String
getStreet()
int
getZipCode()
int
hashCode()
void
setCity(String city)
void
setState(String state)
void
setStreet(String street)
void
setZipCode(int zipCode)
Address
withCity(String city)
Address
withState(String state)
Address
withStreet(String street)
Address
withZipCode(int zipCode)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
street
private String street
-
city
private String city
-
state
private String state
-
zipCode
private int zipCode
-
-
Method Detail
-
getStreet
public String getStreet()
-
setStreet
public void setStreet(String street)
-
getCity
public String getCity()
-
setCity
public void setCity(String city)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getZipCode
public int getZipCode()
-
setZipCode
public void setZipCode(int zipCode)
-
withZipCode
public Address withZipCode(int zipCode)
-
-