public class SubnetIp extends Object
Constructor and Description |
---|
SubnetIp(IpAddress ip,
SubnetMask mask)
Construct a IP address/subnet mask object.
|
Modifier and Type | Method and Description |
---|---|
IpAddress |
ip()
Returns the IP address.
|
SubnetMask |
mask()
Returns the subnet mask.
|
void |
setIp(IpAddress ip)
Set the IP address.
|
void |
setMask(SubnetMask mask)
Set the subnet mask.
|
String |
toString() |
public SubnetIp(IpAddress ip, SubnetMask mask)
ip
- IP Address.mask
- Subnet mask.public IpAddress ip()
public void setIp(IpAddress ip)
ip
- IP address.public SubnetMask mask()
public void setMask(SubnetMask mask)
mask
- subnet maskCopyright © 2015. All Rights Reserved.