|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.Pair<InetAddress,Integer>
org.jppf.utils.NetworkUtils.SubnetInformation
public static class NetworkUtils.SubnetInformation
A pair grouping an InetAddress and the corresponding subnet mask length.
| Constructor Summary | |
|---|---|
NetworkUtils.SubnetInformation(InetAddress addr,
Integer subnetMaskLength)
Initialze this pair with the specified InetAddress and subnet mask length. |
|
| Method Summary | |
|---|---|
InetAddress |
address()
Get the internet address. |
int |
rawIPAsInt()
Convert an Inet4Address to a raw IP value. |
int |
subnetMask()
Get the subnet mask for this subnet information. |
Integer |
subnetMaskLength()
Get the subnet mask length. |
| Methods inherited from class org.jppf.utils.Pair |
|---|
equals, first, hashCode, second |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkUtils.SubnetInformation(InetAddress addr,
Integer subnetMaskLength)
addr - the address.subnetMaskLength - the subnet mask length.| Method Detail |
|---|
public InetAddress address()
InetAddress instance.public Integer subnetMaskLength()
public int rawIPAsInt()
Inet4Address to a raw IP value.
public int subnetMask()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||