public class IPv6Subnet extends IPv6Range implements IPSubnet<IPv6Address>
| Modifier and Type | Field and Description |
|---|---|
protected int |
networkBitCount |
| Constructor and Description |
|---|
IPv6Subnet(IPv6Address address,
com.github.maltalex.ineter.range.IPv6Subnet.IPv6SubnetMask mask) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHostBitCount()
Returns the number of bits used for the host part of the address.
|
IPv6Address |
getNetworkAddress()
Returns the address of the network (with all host bits set to zero) same
as
IPSubnet.getFirst() |
int |
getNetworkBitCount()
Returns the number of bits used for the network address.
|
IPv6Address |
getNetworkMask()
Returns the network mask in address form
|
static IPv6Subnet |
of(IPv6Address address,
int maskLen) |
static IPv6Subnet |
of(java.lang.String cidr) |
static IPv6Subnet |
of(java.lang.String address,
int maskLen) |
static IPv6Subnet |
parse(java.lang.String from) |
java.lang.String |
toString() |
between, getFirst, getLast, iterator, length, maxSubnetInRange, numberOfLeadingEq, numberOfTrailingOnes, numberOfTrailingZeros, of, of, of, of, of, of, of, toSubnetscontains, contains, equals, hashCode, iterator, iterator, overlaps, parseRange, parseSubnetclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic IPv6Subnet(IPv6Address address, com.github.maltalex.ineter.range.IPv6Subnet.IPv6SubnetMask mask)
public static IPv6Subnet of(java.lang.String cidr)
public static IPv6Subnet parse(java.lang.String from)
public static IPv6Subnet of(java.lang.String address, int maskLen)
public static IPv6Subnet of(IPv6Address address, int maskLen)
public java.lang.String toString()
toString in class IPRange<IPv6Address>public int getNetworkBitCount()
IPSubnetgetNetworkBitCount in interface IPSubnet<IPv6Address>public IPv6Address getNetworkMask()
IPSubnetgetNetworkMask in interface IPSubnet<IPv6Address>public int getHostBitCount()
IPSubnetgetHostBitCount in interface IPSubnet<IPv6Address>public IPv6Address getNetworkAddress()
IPSubnetIPSubnet.getFirst()getNetworkAddress in interface IPSubnet<IPv6Address>