Package com.maxmind.geoip2.record
Class AbstractNamedRecord
- java.lang.Object
-
- com.maxmind.geoip2.record.AbstractRecord
-
- com.maxmind.geoip2.record.AbstractNamedRecord
-
- Direct Known Subclasses:
City,Continent,Country,Subdivision
public abstract class AbstractNamedRecord extends AbstractRecord
Abstract class for records with name maps.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetGeoNameId()StringgetName()Map<String,String>getNames()-
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
-
-
-
Method Detail
-
getGeoNameId
public Integer getGeoNameId()
- Returns:
- The GeoName ID for the city. This attribute is returned by all end points.
-
getName
public String getName()
- Returns:
- The name of the city based on the locales list passed to the
WebServiceClientconstructor. This attribute is returned by all end points.
-
-