public final class RepresentedCountry extends Country
Contains data for the represented country associated with an IP address.
This class contains the country-level data associated with an IP address for the IP's represented country. The represented country is the country represented by something like a military base.
Do not use any of the country names as a database or map key. Use the value
returned by AbstractNamedRecord.getGeoNameId()
or Country.getIsoCode()
instead.
Constructor and Description |
---|
RepresentedCountry() |
RepresentedCountry(List<String> locales,
Integer confidence,
Integer geoNameId,
boolean isInEuropeanUnion,
String isoCode,
Map<String,String> names,
String type) |
RepresentedCountry(List<String> locales,
Integer confidence,
Integer geoNameId,
String isoCode,
Map<String,String> names,
String type) |
Modifier and Type | Method and Description |
---|---|
String |
getType() |
getConfidence, getIsoCode, isInEuropeanUnion
getGeoNameId, getName, getNames
toJson, toString
public RepresentedCountry()
public RepresentedCountry(List<String> locales, Integer confidence, Integer geoNameId, String isoCode, Map<String,String> names, String type)
public String getType()
military
but this could
expand to include other types in the future.Copyright © 2020 MaxMind, Inc.. All rights reserved.