Class Country


  • public class Country
    extends java.lang.Object
    Provides country name and iso code for geolocation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Country​(com.maxmind.geoip2.record.Country ctry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getIsoCode()
      The ISO code of the country (e.g.
      java.lang.String getName()
      Name of the country
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Country

        public Country​(com.maxmind.geoip2.record.Country ctry)
    • Method Detail

      • getName

        public java.lang.String getName()
        Name of the country
        Returns:
        the name of the country
      • getIsoCode

        public java.lang.String getIsoCode()
        The ISO code of the country (e.g. US, IT, DE, FR etc...)
        Returns:
        the ISO code of the country