com.maxmind.geoip
Class Country

java.lang.Object
  extended by com.maxmind.geoip.Country

public class Country
extends java.lang.Object

Represents a country.

Author:
Matt Tucker

Constructor Summary
Country(java.lang.String code, java.lang.String name)
          Creates a new Country.
 
Method Summary
 java.lang.String getCode()
          Returns the ISO two-letter country code of this country.
 java.lang.String getName()
          Returns the name of this country.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Country

public Country(java.lang.String code,
               java.lang.String name)
Creates a new Country.

Parameters:
code - the country code.
name - the country name.
Method Detail

getCode

public java.lang.String getCode()
Returns the ISO two-letter country code of this country.

Returns:
the country code.

getName

public java.lang.String getName()
Returns the name of this country.

Returns:
the country name.