Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the shape of an Internet Protocol number. It describes properties and operations that can be performed on all Internet Protocol numbers.

Hierarchy

  • IPNumber

Implemented by

Index

Properties

type

type: IPNumType.ASN | IPNumType.IPv4 | IPNumType.IPv6

The type of IP number. The value is one of the values of the IPNumType enum

value

value: BigInteger

The decimal value represented by the IP number in BigInteger

Methods

getValue

  • getValue(): BigInteger
  • Method to return the decimal value represented by the IP number in BigInteger

    Returns BigInteger

    the decimal value represented by the IP number in BigInteger

hasNext

  • hasNext(): boolean
  • Method to check of the IP number is not the maximum IP number value. That it, it has a next value.

    Returns boolean

    true, if the IP number has next value. False otherwise

hasPrevious

  • hasPrevious(): boolean
  • Method to check of the IP number is not the minimum IP number value. That it, it has a previous value.

    Returns boolean

    true, if the IP number has previous value. False otherwise

nextIPNumber

previousIPNumber

toString

  • toString(): string

Generated using TypeDoc