| Constructor and Description |
|---|
Address() |
Address(address addr) |
Address(java.lang.String ip)
Create an address from an IPv4 address string in dotted decimal form,
or from an IPv6 address in hexadecimal notation.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
clone() |
int |
compareTo(Address o)
Compare addresses for ordering.
|
boolean |
isLoopback()
Determine whether the address is a loopback address.
|
boolean |
isMulticast()
Determine whether the address is a multicast address.
|
boolean |
isUnspecified()
Determine whether the address is unspecified.
|
boolean |
isV4()
Get whether the address is an IP version 4 address.
|
boolean |
isV6()
Get whether the address is an IP version 6 address.
|
address |
swig() |
java.lang.String |
toString()
Get the address as a string in dotted decimal format.
|
public Address(address addr)
addr - the native objectpublic Address(java.lang.String ip)
ip - the ip string representationpublic Address()
public address swig()
public boolean isV4()
public boolean isV6()
public boolean isLoopback()
public boolean isUnspecified()
public boolean isMulticast()
public int compareTo(Address o)
compareTo in interface java.lang.Comparable<Address>o - the other addresspublic java.lang.String toString()
toString in class java.lang.Objectpublic Address clone()
clone in class java.lang.Object