Modifier and Type | Class and Description |
---|---|
class |
IPv4Subnet
Represents a subnet of IPv4 addresses.
|
class |
IPv6Subnet
Represents a subnet of IPv6 addresses.
|
Modifier and Type | Method and Description |
---|---|
abstract Subnet<IP> |
IPAddress.inSubnet(int prefixLength)
Returns a subnet of a specific prefix length that contains this IP address.
|
static Subnet<?> |
Subnet.valueOf(CharSequence cidrNotation)
Returns a subnet represented by a CIDR notation.
|
static Subnet<?> |
Subnet.valueOf(CharSequence routingPrefix,
int prefixLength)
Returns a subnet represented by a routing prefix and a prefix length.
|
static Subnet<?> |
Subnet.valueOf(CharSequence cidrNotation,
int start,
int end)
Returns a subnet represented by a CIDR notation.
|
static Subnet<?> |
Subnet.valueOf(IPAddress<?> routingPrefix,
int prefixLength)
Returns a subnet represented by a routing prefix and a prefix length.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Subnet<?>> |
Subnet.tryValueOf(CharSequence cidrNotation)
Attempts to return a subnet represented by a
CharSequence . |
static Optional<Subnet<?>> |
Subnet.tryValueOf(CharSequence cidrNotation,
int start,
int end)
Attempts to return a subnet represented by a portion of a
CharSequence . |
Copyright © 2019–2023. All rights reserved.