Constructor for an instance of RangedSet from an instance of either IPv4CidrRange or IPv6CidrRange
Throws an exception if first IP number is not less than given last IP number
the first IP number of the range
the last IP number of the range
Checks if this range contains the given other range.
the other range to check if this range contains
Returns the first IP number in the range
Returns the last IP number in the range
Returns the size, which is the number of IP numbers in the range.
Checks if this range is inside another range.
the other range to check if this range is inside of.
Check if this range can be converted to a CIDR range.
Checks if this range is consecutive with another range.
This means if the two ranges can be placed side by side, without any gap. Hence Equal or ranges contained inside one another, or overlapping ranges are not considered as consecutive.
the other range to check if this range is consecutive to.
Check if this range is equal to the given other range.
the other range to check if equal to this range.
Check if this range is greater than the given range.
the other range to check if greater than.
Check if this range is less than the given range.
the other range to check if less than.
Checks of this range overlaps with a given other range.
This means it checks if part of a range is part of another range without being totally contained in the other range. Hence Equal or ranges contained inside one another are not considered as overlapping.
the other range to check if it overlaps with this range.
Returns a sub range of a given size from this range.
offset from this range where the subrange should begin
the size of the range
Converts an instance of range to an instance of CIDR range
Converts to a string representation of the range in the form of:
Convenience method for constructing an instance of RangedSet from an instance of either IPv4CidrRange or IPv6CidrRange
an instance of RangedSet
Generated using TypeDoc
Represents a continuous segment of either IPv4 or IPv6 numbers without adhering to classless inter-domain routing scheme for allocating IP addresses.