java.lang.Object
com.maxmind.geoip2.record.AbstractRecord
com.maxmind.geoip2.record.AbstractNamedRecord
com.maxmind.geoip2.record.Country
- Direct Known Subclasses:
RepresentedCountry
Contains data for the country record associated with an IP address.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Country
public Country() -
Country
-
Country
-
-
Method Details
-
getConfidence
- Returns:
- A value from 0-100 indicating MaxMind's confidence that the country is correct. This attribute is only available from the Insights web service and the GeoIP2 Enterprise database.
-
isInEuropeanUnion
public boolean isInEuropeanUnion()- Returns:
- This is true if the country is a member state of the European Union.
-
getIsoCode
- Returns:
- The two-character ISO 3166-1 alpha code for the country.
-