public final class SubnetUtils.SubnetInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
asInteger(java.lang.String address) |
java.lang.String |
getAddress() |
int |
getAddressCount()
Get the count of available addresses.
|
java.lang.String[] |
getAllAddresses() |
java.lang.String |
getBroadcastAddress() |
java.lang.String |
getCidrSignature() |
java.lang.String |
getHighAddress()
Return the high address as a dotted IP address.
|
java.lang.String |
getLowAddress()
Return the low address as a dotted IP address.
|
java.lang.String |
getNetmask() |
java.lang.String |
getNetworkAddress() |
boolean |
isInRange(java.lang.String address)
Returns true if the parameter
address is in the range of
usable endpoint addresses for this subnet. |
java.lang.String |
toString() |
public boolean isInRange(java.lang.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 java.lang.String getBroadcastAddress()
public java.lang.String getNetworkAddress()
public java.lang.String getNetmask()
public java.lang.String getAddress()
public java.lang.String getLowAddress()
public java.lang.String getHighAddress()
public int getAddressCount()
public int asInteger(java.lang.String address)
public java.lang.String getCidrSignature()
public java.lang.String[] getAllAddresses()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021. All Rights Reserved.