Constructor for an IP pool.
Creates a Pool of IP ranges from supplied RangedSet's
the array of IP ranges that would make up the pool.
Adds the given range to the pool.
to add to pool.
Removes all ranges from pool
Gets a single range of size of the given prefix from pool. Only returns a range if there is a single range in the pool of same size or greater than given prefix.
throws exception if the requested range cannot be got from the pool.
prefix range to retrieve TODO TSE
Gets a single or multiple ranges that fulfils the given prefix from the pool.
throws exception if the requested range cannot be got from the pool.
prefix range to retrieve
Returns an array of RangedSet's that is contained within the pool
Returns the size of IP numbers in the pool
Removes the given range from the pool. It only removes if the exact range exist in the pool. It is a Noop and returns false, if the given range does not exist in the pool. Returns true otherwise
range to remove from ppol
Removes the given range from the pool. If the given range overlaps, then it removes the overlapping portion. It is a Noop and returns false, if the given range does not exist in the pool. Returns true otherwise
range to remove from ppol
Static
fromConvenient method for creating an instance from arrays of IPv4CidrRange or IPv6CidrRange.
the arrays of IPv4CidrRange or IPv6CidrRange that will make up the pool.
Static
fromStatic
fromConvenient method for creating an instance from arrays of RangedSet.
the arrays of RangedSet's that will make up the pool.
Represents a collection of IP RangedSet's