university
Class Address

java.lang.Object
  extended by university.Address
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Address
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A class representing an Address.

See Also:
Serialized Form

Constructor Summary
Address()
          Creates a new instance of Address
Address(java.lang.String street, java.lang.String city, java.lang.String state, java.lang.String zipcode)
          Creates a new instance of Address
 
Method Summary
 java.lang.Object clone()
          Clone a new object
 java.lang.String getCity()
          Returns the city.
 java.lang.String getState()
          Returns the state.
 java.lang.String getStreet()
          Returns the street.
 java.lang.String getZipcode()
          Returns the zipcode
 void setCity(java.lang.String city)
          Sets the city.
 void setState(java.lang.String state)
          Sets the state.
 void setStreet(java.lang.String street)
          Sets the street.
 void setZipcode(java.lang.String zipcode)
          Sets the zipcode.
 java.lang.String toString()
          Returns a String representation of the Address.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Creates a new instance of Address


Address

public Address(java.lang.String street,
               java.lang.String city,
               java.lang.String state,
               java.lang.String zipcode)
Creates a new instance of Address

Parameters:
street - The street
city - The city
state - The state
zipcode - The zipcode
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone a new object

Overrides:
clone in class java.lang.Object
Returns:
Object a cloned object
Throws:
java.lang.CloneNotSupportedException - Throws CloneNotSupportedException

setStreet

public final void setStreet(java.lang.String street)
Sets the street.

Parameters:
street - The street

getStreet

public final java.lang.String getStreet()
Returns the street.

Returns:
A String representing the street

setCity

public final void setCity(java.lang.String city)
Sets the city.

Parameters:
city - The city

getCity

public final java.lang.String getCity()
Returns the city.

Returns:
Returns a String representing the city.

setState

public final void setState(java.lang.String state)
Sets the state.

Parameters:
state - The state

getState

public final java.lang.String getState()
Returns the state.

Returns:
Retruns a String of the state

setZipcode

public final void setZipcode(java.lang.String zipcode)
Sets the zipcode.

Parameters:
zipcode - The zipcode

getZipcode

public final java.lang.String getZipcode()
Returns the zipcode

Returns:
A String of the zipcode

toString

public java.lang.String toString()
Returns a String representation of the Address.

Overrides:
toString in class java.lang.Object
Returns:
A String representing the address