public class Country extends AbstractNamedRecord
Contains data for the country record associated with an IP address.
This record is returned by all the end points.
Do not use any of the country names as a database or map key. Use the value
returned by AbstractNamedRecord.getGeoNameId()
or getIsoCode()
instead.
Constructor and Description |
---|
Country() |
Country(List<String> locales,
Integer confidence,
Integer geoNameId,
boolean isInEuropeanUnion,
String isoCode,
Map<String,String> names) |
Country(List<String> locales,
Integer confidence,
Integer geoNameId,
String isoCode,
Map<String,String> names) |
Modifier and Type | Method and Description |
---|---|
Integer |
getConfidence() |
String |
getIsoCode() |
boolean |
isInEuropeanUnion() |
getGeoNameId, getName, getNames
toJson, toString
public Country()
public Country(List<String> locales, Integer confidence, Integer geoNameId, String isoCode, Map<String,String> names)
public Integer getConfidence()
public boolean isInEuropeanUnion()
public String getIsoCode()
Copyright © 2020 MaxMind, Inc.. All rights reserved.