java.lang.Object
com.maxmind.geoip2.record.AbstractRecord
com.maxmind.geoip2.record.AbstractNamedRecord
com.maxmind.geoip2.record.Continent
Contains data for the continent record associated with an IP address.
Do not use any of the continent names as a database or map key. Use the
value returned by AbstractNamedRecord.getGeoNameId()
or getCode()
instead.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.maxmind.geoip2.record.AbstractNamedRecord
getGeoNameId, getName, getNames
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
Constructor Details
-
Continent
public Continent()Constructs an instance ofContinent
with no data. -
Continent
Constructs an instance ofContinent
.- Parameters:
locales
- The locales to use.code
- A two character continent code like "NA" (North America) or "OC" (Oceania).geoNameId
- The GeoName ID for the continent.names
- A map from locale codes to the continent names.
-
Continent
Constructs an instance ofContinent
.- Parameters:
continent
- TheContinent
object to copy.locales
- The locales to use.
-
-
Method Details
-
getCode
- Returns:
- A two character continent code like "NA" (North America) or "OC" (Oceania).
-