Modifier and Type | Method and Description |
---|---|
IPv4Subnet |
IPv4Address.inSubnet(int prefixLength) |
static IPv4Subnet |
IPv4Subnet.valueOf(CharSequence cidrNotation)
Returns an IPv4 subnet represented by a CIDR notation.
|
static IPv4Subnet |
IPv4Subnet.valueOf(CharSequence routingPrefix,
CharSequence netmask)
Returns an IPv4 subnet represented by a routing prefix and a netmask.
|
static IPv4Subnet |
IPv4Subnet.valueOf(CharSequence routingPrefix,
int prefixLength)
Returns an IPv4 subnet represented by a routing prefix and a prefix length.
|
static IPv4Subnet |
IPv4Subnet.valueOf(CharSequence cidrNotation,
int start,
int end)
Returns an IPv4 subnet represented by a CIDR notation.
|
static IPv4Subnet |
IPv4Subnet.valueOf(IPv4Address routingPrefix,
int prefixLength)
Returns an IPv4 subnet represented by a routing prefix and a prefix length.
|
static IPv4Subnet |
IPv4Subnet.valueOf(IPv4Address routingPrefix,
IPv4Address netmask)
Returns an IPv4 subnet represented by a routing prefix and a netmask.
|
Modifier and Type | Method and Description |
---|---|
static Optional<IPv4Subnet> |
IPv4Subnet.tryValueOfIPv4(CharSequence cidrNotation)
Attempts to return an IPv4 subnet represented by a
CharSequence . |
static Optional<IPv4Subnet> |
IPv4Subnet.tryValueOfIPv4(CharSequence cidrNotation,
int start,
int end)
Attempts to return an IPv4 subnet represented by a portion of a
CharSequence . |
Copyright © 2019–2023. All rights reserved.