Class Location.Subdivision

  • Enclosing class:
    Location

    public static class Location.Subdivision
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Integer geoNameId
      The GeoName id of this subdivision.
      private java.lang.String isoCode
      The ISO-3166-2 code of the subdivision.
      private java.lang.String name
      The name of the subdivision.
    • Constructor Summary

      Constructors 
      Constructor Description
      Subdivision​(com.maxmind.geoip2.record.Subdivision s)  
      Subdivision​(java.lang.Integer geoNameId, java.lang.String name, java.lang.String isoCode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getGeoNameId()
      The GeoName id of this subdivision.
      java.lang.String getIsoCode()
      The ISO-3166-2 code of the subdivision.
      java.lang.String getName()
      The name of the subdivision.
      • Methods inherited from class java.lang.Object

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

      • geoNameId

        private final java.lang.Integer geoNameId
        The GeoName id of this subdivision.
        Since:
        15.24
      • name

        private final java.lang.String name
        The name of the subdivision.
        Since:
        15.24
      • isoCode

        private java.lang.String isoCode
        The ISO-3166-2 code of the subdivision.
        Since:
        15.24
    • Constructor Detail

      • Subdivision

        public Subdivision​(com.maxmind.geoip2.record.Subdivision s)
      • Subdivision

        public Subdivision​(java.lang.Integer geoNameId,
                           java.lang.String name,
                           java.lang.String isoCode)
    • Method Detail

      • getGeoNameId

        public java.lang.Integer getGeoNameId()
        The GeoName id of this subdivision.
        Since:
        15.24
      • getName

        public java.lang.String getName()
        The name of the subdivision.
        Since:
        15.24
      • getIsoCode

        public java.lang.String getIsoCode()
        The ISO-3166-2 code of the subdivision.
        Since:
        15.24