Package com.maxmind.geoip2.record
Class RepresentedCountry
- java.lang.Object
-
- com.maxmind.geoip2.record.AbstractRecord
-
- com.maxmind.geoip2.record.AbstractNamedRecord
-
- com.maxmind.geoip2.record.Country
-
- com.maxmind.geoip2.record.RepresentedCountry
-
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()
orCountry.getIsoCode()
instead.
-
-
Constructor Summary
Constructors Constructor Description RepresentedCountry()
RepresentedCountry(RepresentedCountry country, List<String> locales)
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)
RepresentedCountry(List<String> locales, Integer confidence, Long geoNameId, Boolean isInEuropeanUnion, String isoCode, Map<String,String> names, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getType()
-
Methods inherited from class com.maxmind.geoip2.record.Country
getConfidence, getIsoCode, isInEuropeanUnion
-
Methods inherited from class com.maxmind.geoip2.record.AbstractNamedRecord
getGeoNameId, getName, getNames
-
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
-
-
-
Constructor Detail
-
RepresentedCountry
public RepresentedCountry()
-
RepresentedCountry
public RepresentedCountry(List<String> locales, Integer confidence, Integer geoNameId, String isoCode, Map<String,String> names, String type)
-
RepresentedCountry
public RepresentedCountry(List<String> locales, Integer confidence, Integer geoNameId, boolean isInEuropeanUnion, String isoCode, Map<String,String> names, String type)
-
RepresentedCountry
public RepresentedCountry(List<String> locales, Integer confidence, Long geoNameId, Boolean isInEuropeanUnion, String isoCode, Map<String,String> names, String type)
-
RepresentedCountry
public RepresentedCountry(RepresentedCountry country, List<String> locales)
-
-
Method Detail
-
getType
public String getType()
- Returns:
- A string indicating the type of entity that is representing the
country. Currently we only return
military
but this could expand to include other types in the future.
-
-