public final class SubnetUtils.SubnetInfo extends Object
Modifier and Type | Method and Description |
---|---|
int |
asInteger(String address) |
String |
getAddress() |
int |
getAddressCount()
Get the count of available addresses.
|
String[] |
getAllAddresses() |
String |
getBroadcastAddress() |
String |
getCidrSignature() |
String |
getHighAddress()
Return the high address as a dotted IP address.
|
String |
getLowAddress()
Return the low address as a dotted IP address.
|
String |
getNetmask() |
String |
getNetworkAddress() |
boolean |
isInRange(String address)
Returns true if the parameter
address is in the
range of usable endpoint addresses for this subnet. |
String |
toString() |
public boolean isInRange(String address)
address
is in the
range of usable endpoint addresses for this subnet. This excludes the
network and broadcast adresses.address
- A dot-delimited IPv4 address, e.g. "192.168.0.1"public String getBroadcastAddress()
public String getNetworkAddress()
public String getNetmask()
public String getAddress()
public String getLowAddress()
public String getHighAddress()
public int getAddressCount()
public int asInteger(String address)
public String getCidrSignature()
public String[] getAllAddresses()
Copyright © 2001-2015 JRuby. All Rights Reserved.