FileDocCategorySizeDatePackage
Country8.javaAPI DocExample2391Sun Dec 14 22:47:36 GMT 2003oreilly.hcj.constants

Country8.java

/*
 *     file: Country8.java
 *  package: oreilly.hcj.constants
 *
 * This software is granted under the terms of the Common Public License,
 * CPL, which may be found at the following URL:
 * http://www-124.ibm.com/developerworks/oss/CPLv1.0.htm
 *
 * Copyright(c) 2003-2005 by the authors indicated in the @author tags.
 * All Rights are Reserved by the various authors.
 *
########## DO NOT EDIT ABOVE THIS LINE ########## */

package oreilly.hcj.constants;

/**  
 * Holds country constants.
 *
 * @author <a href=mailto:kraythe@arcor.de>Robert Simmons jr. (kraythe)</a>
 * @version $Revision: 1.3 $
 */
public final class Country8 extends ConstantObject {
	/** Contry constant for Canada. */
	public static final Country8 CANADA = new Country8("CANADA", 31.90f);

	/** Contry constant for Croatia. */
	public static final Country8 CROATIA = new Country8("CROATIA", 4.39f);

	/** Contry constant for Germany. */
	public static final Country8 GERMANY = new Country8("GERMANY", 83.25f);

	/** Contry constant for Italy. */
	public static final Country8 ITALY = new Country8("ITALY", 57.71f);

	/** Contry constant for Mexico. */
	public static final Country8 MEXICO = new Country8("MEXICO", 103.40f);

	/** Contry constant for the UK. */
	public static final Country8 UK = new Country8("UK", 59.77f);

	/** Contry constant for the USA. */
	public static final Country8 USA = new Country8("USA", 280.56f);

	/** Contry constant for the Venezuela. */
	public static final Country8 VENEZUELA = new Country8("VENEZUELA", 24.28f);

	/** Holds the abbreviation for the Country in millions. */
	private float population;

	/** 
	 * Creates a new Country8.
	 *
	 * @param name The name for the country type.
	 * @param population The country's population in millions of people.
	 */
	private Country8(final String name, final float population) {
		super(name);
		this.population = population;
	}

	/** 
	 * Sets the population.
	 *
	 * @param population The country's new population in millions of people.
	 */
	public final void setPopulation(final float population) {
		this.population = population;
	}

	/** 
	 * Gets the population.
	 *
	 * @return The country's population in millions of people.
	 */
	public final float getPopulation() {
		return this.population;
	}
}

/* ########## End of File ########## */