DVCidr class final

An address range: 10.0.0.0/8, 2001:db8::/32, or a bare address as the single host it names.

Properties

hashCode → int
The hash code for this object.
no setteroverride
network → DVIpAddress
final
prefixLength → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(DVIpAddress address) → bool
Whether address is in this range. An IPv4 range never contains an IPv6 address or the reverse; an IPv4-mapped address is IPv4.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

containing(DVIpAddress address, int prefixLength) → DVCidr
The range of prefixLength bits that contains address: the address with every bit past the prefix cleared. Unlike parse, which refuses a host written as a range, this is how a host is turned into its network.
parse(String text) → DVCidr
Parses text, refusing anything that is not exactly a range.
tryParse(String text) → DVCidr?
parse, or null.