public final class JavaMapDbIpRepositoryImpl extends java.lang.Object implements DbIpRepository
Modifier and Type | Method and Description |
---|---|
GeoEntity |
get(java.net.InetAddress inetAddress)
Lookup GeoEntity for an InetAddress
|
static JavaMapDbIpRepositoryImpl |
getInstance() |
static java.util.TreeMap<java.lang.Integer,GeoEntity> |
getIpv4Repository() |
void |
save(GeoAttributes geoAttributes)
Save GeoEntity for an InetAddress
|
public static JavaMapDbIpRepositoryImpl getInstance()
public GeoEntity get(java.net.InetAddress inetAddress)
get
in interface DbIpRepository
inetAddress
- The InetAddress to be resolved.public void save(GeoAttributes geoAttributes)
save
in interface DbIpRepository
geoAttributes
- The attributes to be saved . Contains the attributes that will be needed
as key and value to be put inside the TreeMap.public static java.util.TreeMap<java.lang.Integer,GeoEntity> getIpv4Repository()