FileDocCategorySizeDatePackage
Country4.javaAPI DocExample2414Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.constants

Country4

public class Country4 extends Object implements Serializable
Holds country constants.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
private static final Map
INDEX
Holds the Index of the country objects.
public static final Country4
CANADA
Contry constant for Canada.
public static final Country4
CROATIA
Contry constant for Croatia.
public static final Country4
GERMANY
Contry constant for Germany.
public static final Country4
ITALY
Contry constant for Italy.
public static final Country4
MEXICO
Contry constant for Mexico.
public static final Country4
UK
Contry constant for the UK.
public static final Country4
USA
Contry constant for the USA.
public static final Country4
VENEZUELA
Contry constant for the Venezuela.
private final String
name
Holds the name of this country.
Constructors Summary
private Country4(String name)
Creates a new Country4.

param
name The name for the exception type.


	             	 
	    
		this.name = name;
		INDEX.put(name, this);
	
Methods Summary
public java.lang.StringgetName()
Get the name of this country.

return
The name of the country.

		return this.name;
	
public static oreilly.hcj.constants.Country4lookup(java.lang.String name)
Looks up a String to find the associated Country3 object.

param
name The name to lookup.
return
The object or null if it does not exist.

		return (Country4)INDEX.get(name);