@Embeddable public class Address extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
city |
private static long |
serialVersionUID |
private String |
state |
private String |
street |
private int |
zipCode |
Constructor and Description |
---|
Address() |
Modifier and Type | Method and 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) |
private static final long serialVersionUID
private String street
private String city
private String state
private int zipCode
public String getStreet()
public void setStreet(String street)
public String getCity()
public void setCity(String city)
public String getState()
public void setState(String state)
public int getZipCode()
public void setZipCode(int zipCode)
public Address withZipCode(int zipCode)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.