public final class Record
extends java.lang.Object
| Constructor and Description |
|---|
Record(com.fasterxml.jackson.databind.JsonNode data,
java.net.InetAddress ipAddress,
int prefixLength)
Create a new record.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
getData() |
Network |
getNetwork() |
public Record(com.fasterxml.jackson.databind.JsonNode data,
java.net.InetAddress ipAddress,
int prefixLength)
data - the data for the record in the database.ipAddress - the IP address used in the lookup.prefixLength - the network prefix length associated with the record in the database.public com.fasterxml.jackson.databind.JsonNode getData()
null if there was no data for the address in the database.public Network getNetwork()
Copyright © 2019 MaxMind, Inc.. All Rights Reserved.