Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractIPRange<T, P>

Provides the implementation of functionality that are common to IPv4CidrRange and IPv6CidrRange

Type parameters

Hierarchy

Implements

Index

Properties

Abstract bitValue

bitValue: BigInteger

Methods

[Symbol.iterator]

contains

Abstract getFirst

  • getFirst(): T

Abstract getLast

  • getLast(): T

Abstract getPrefix

  • getPrefix(): P

Abstract getSize

  • getSize(): BigInteger

hasNextRange

  • hasNextRange(): boolean

hasPreviousRange

  • hasPreviousRange(): boolean

inside

isCidrMergeable

isConsecutive

isEquals

isMergeable

isOverlapping

merge

Protected Abstract newInstance

takeStream

  • takeStream(count?: undefined | number): Iterable<AbstractIPNum>
  • Returns a lazily evaluated representation of the IP range that produces IP numbers by either:

    • iterating over using the for of syntax
    • converting to array using spread syntax
    • or assigning values to variables using deconstruction

    Parameters

    • Optional count: undefined | number

      the number of IP numbers to lazily evaluate. If none is given, the whole IP range is lazily returned.

    Returns Iterable<AbstractIPNum>

Abstract toCidrString

  • toCidrString(): string | never

toRangeSet

toRangeString

  • toRangeString(): string

Generated using TypeDoc