| Package | Description |
|---|---|
| com.h3c.util.ip |
| Modifier and Type | Field and Description |
|---|---|
static SubnetMask |
SubnetMask.MASK_255_0_0_0 |
static SubnetMask |
SubnetMask.MASK_255_255_0_0 |
static SubnetMask |
SubnetMask.MASK_255_255_248_0 |
static SubnetMask |
SubnetMask.MASK_255_255_255_0 |
| Modifier and Type | Method and Description |
|---|---|
static SubnetMask |
SubnetMask.fromCidr(String cidr)
Returns a
SubnetMask object that represents the value of the
subnet mask implied by the given CIDR notation. |
SubnetMask |
IpAddress.AddressClass.getImpliedMask()
Returns the subnet mask implied by the address class, for
classes A, B, C; null for other classes.
|
SubnetMask |
Subnet.getMask()
Returns the subnet mask.
|
static SubnetMask |
SubnetMask.valueOf(byte[] maskBytes)
Returns a
SubnetMask object that represents the subnet mask
defined by the specified byte array. |
static SubnetMask |
SubnetMask.valueOf(IpAddress mask)
Returns a
SubnetMask object that represents the subnet mask
with the value of the given IP address. |
static SubnetMask |
SubnetMask.valueOf(String mask)
Returns a
SubnetMask object that represents the value of the
subnet mask defined by the specified string. |
| Modifier and Type | Method and Description |
|---|---|
int |
SubnetMask.compareTo(SubnetMask o) |
static Subnet |
Subnet.valueOf(IpAddress address,
SubnetMask mask)
Returns a
Subnet instance that encapsulates the
given subnet address and subnet mask. |
Copyright © 2014. All Rights Reserved.