FileDocCategorySizeDatePackage
Address.javaAPI DocExample1606Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.constants

Address

public class Address extends Object
Encapsulates an address to demo the use of country constants.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
private int
country
Holds the value of the property country.
Constructors Summary
Methods Summary
public intgetCountry()
Getter for the value of the property country.

return
The current value of the property country.

		return this.country;
	
public voidsetCountry(int country)
Setter for the value of the property country.

param
country The new value of the property country.

		this.country = country;
	
public voidsetCountry2(int country)
Setter for the value of the property country.

param
country The new value of the property country.
throws
IllegalArgumentException If the country is an illegal value.

		if ((country < Country.MIN_VALUE) || (country > Country.MAX_VALUE)) {
			throw new IllegalArgumentException();
		}
		this.country = country;