org.fuin.examples.jmsmvc4swing
Class Address

java.lang.Object
  extended by org.fuin.examples.jmsmvc4swing.Address
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Address>

public final class Address
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<Address>

Address information.

See Also:
Serialized Form

Constructor Summary
Address()
          Default constructor.
 
Method Summary
 int compareTo(Address other)
          
 boolean equals(java.lang.Object obj)
          
 java.lang.String getCity()
          Returns the city.
 java.lang.String getCountry()
          Returns the country.
 java.lang.String getFirstName()
          Returns the first name.
 int getId()
          Returns the unique identifier.
 java.lang.String getLastName()
          Returns the last name.
 java.lang.String getState()
          Returns the state.
 java.lang.String getStreet()
          Returns the street.
 java.lang.String getZip()
          Returns the postal ZIP code.
 int hashCode()
          
 Address setCity(java.lang.String city)
          Sets the city to a new value.
 Address setCountry(java.lang.String country)
          Sets the country to a new value.
 Address setFirstName(java.lang.String firstName)
          Sets the first name to a new value.
 Address setId(int id)
          Sets the unique identifier to a new value.
 Address setLastName(java.lang.String lastName)
          Sets the last name to a new value.
 Address setState(java.lang.String state)
          Sets the state name to a new value.
 Address setStreet(java.lang.String street)
          Sets the street name to a new value.
 Address setZip(java.lang.String zip)
          Sets the postal ZIP code to a new value.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Default constructor.

Method Detail

getId

public final int getId()
Returns the unique identifier.

Returns:
Unique ID.

setId

public final Address setId(int id)
Sets the unique identifier to a new value.

Parameters:
id - Unique ID.
Returns:
The address instance.

getLastName

public final java.lang.String getLastName()
Returns the last name.

Returns:
Last name.

setLastName

public final Address setLastName(java.lang.String lastName)
Sets the last name to a new value.

Parameters:
lastName - Last name.
Returns:
The address instance.

getFirstName

public final java.lang.String getFirstName()
Returns the first name.

Returns:
First name.

setFirstName

public final Address setFirstName(java.lang.String firstName)
Sets the first name to a new value.

Parameters:
firstName - Last name.
Returns:
The address instance.

getStreet

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

Returns:
Name of the street.

setStreet

public final Address setStreet(java.lang.String street)
Sets the street name to a new value.

Parameters:
street - Name of the street.
Returns:
The address instance.

getZip

public final java.lang.String getZip()
Returns the postal ZIP code.

Returns:
ZIP code.

setZip

public final Address setZip(java.lang.String zip)
Sets the postal ZIP code to a new value.

Parameters:
zip - ZIP code.
Returns:
The address instance.

getCity

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

Returns:
Name of the city.

setCity

public final Address setCity(java.lang.String city)
Sets the city to a new value.

Parameters:
city - Name of the city.
Returns:
The address instance.

getState

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

Returns:
Name of the state.

setState

public final Address setState(java.lang.String state)
Sets the state name to a new value.

Parameters:
state - Name of the state.
Returns:
The address instance.

getCountry

public final java.lang.String getCountry()
Returns the country.

Returns:
Name of the country.

setCountry

public final Address setCountry(java.lang.String country)
Sets the country to a new value.

Parameters:
country - Name of the country.
Returns:
The address instance.

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

compareTo

public final int compareTo(Address other)

Specified by:
compareTo in interface java.lang.Comparable<Address>

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.