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 Summary
ConstructorsConstructorDescriptionRepresentedCountry
(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 Summary
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 Details
-
RepresentedCountry
public 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
military
but this could expand to include other types in the future.
-