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
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 SummaryConstructorsConstructorDescriptionRepresentedCountry(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) Deprecated.This constructor exists for backwards compatibility.RepresentedCountry(List<String> locales, Integer confidence, Long geoNameId, Boolean isInEuropeanUnion, String isoCode, Map<String, String> names, String type) 
- 
Method SummaryMethods inherited from class com.maxmind.geoip2.record.CountrygetConfidence, getIsoCode, isInEuropeanUnionMethods inherited from class com.maxmind.geoip2.record.AbstractNamedRecordgetGeoNameId, getName, getNamesMethods inherited from class com.maxmind.geoip2.record.AbstractRecordtoJson, toString
- 
Constructor Details- 
RepresentedCountrypublic RepresentedCountry()
- 
RepresentedCountry@Deprecated public RepresentedCountry(List<String> locales, Integer confidence, Integer geoNameId, String isoCode, Map<String, String> names, String type) Deprecated.This constructor exists for backwards compatibility. Will be removed in the next major release.
- 
RepresentedCountry
- 
RepresentedCountry
- 
RepresentedCountry
 
- 
- 
Method Details- 
getType- Returns:
- A string indicating the type of entity that is representing the
 country. Currently, we only return militarybut this could expand to include other types in the future.
 
 
-