public static class APLRecord.Element
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
address |
int |
family |
boolean |
negative |
int |
prefixLength |
Modifier | Constructor and Description |
---|---|
|
Element(boolean negative,
java.net.InetAddress address,
int prefixLength)
Creates an APL element corresponding to an IPv4 or IPv6 prefix.
|
private |
Element(int family,
boolean negative,
java.lang.Object address,
int prefixLength) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object arg) |
int |
hashCode() |
java.lang.String |
toString() |
public final int family
public final boolean negative
public final int prefixLength
public final java.lang.Object address
private Element(int family, boolean negative, java.lang.Object address, int prefixLength)
public Element(boolean negative, java.net.InetAddress address, int prefixLength)
negative
- Indicates if this prefix is a negation.address
- The IPv4 or IPv6 address.prefixLength
- The length of this prefix, in bits.java.lang.IllegalArgumentException
- The prefix length is invalid.