The number of bits needed to represents the value of the ASN number
The maximum bit size (i.e. binary value) of the ASN number in BigInteger
The decimal value represented by the ASN number in BigInteger
Gets the numeric value of an IP number as {@link BigInteger}
the numeric value of an IP number.
Checks if an IP number has a value greater than the present value
true, if there is a value greater than the present value. Returns false otherwise.
Checks if an IP number has a value lesser than the present value
true, if there is a value lesser than the present value. Returns false otherwise.
Checks if the ASN value is 16bit
true if the ASN is a 16bit value. False otherwise.
Checks if the ASN value is 32bit
true if the ASN is a 32bit value. False otherwise.
Checks if the given IP number, is equals to the current IP number
the other IP number to compare with
true if the given IP number is equals
Checks if the given IP number is greater than this current IP number
the other IP number to compare with
true if the given IP number is greater than this current one. False otherwise.
Checks if the given IP number is greater than or equals to this current IP number
the other IP number to compare with
{boolean} true if the given IP number is greater than or equals to this current one. False otherwise.
Checks if the given IP number is lesser than this current IP number
the other IP number to compare with
true if the given IP number is less than this current one. False otherwise.
Checks if the given IP number is less than or equals to this current IP number
the other IP number to compare with
true if the given IP number is less than or equals to this current one. False otherwise.
Returns the next ASN number
the next ASN number
Returns the previous ASN number
the previous ASN number
A string representation where the ASN value is represented using the asplain notation if the ASN value is less than 65536 and uses asdot+ notation when the value is greater than 65536.
For example 65526 will be represented as "65526" while 65546 will be represented as "1.10"
A string representation of the ASN in either asplain or asdot+ notation depending on whether the numeric value of the ASN number is greater than 65526 or not.
A string representation where the ASN value is represented using the asdot+ notation
A string representation where the ASN value is represented using the asdot+ notation
A string representation where the ASN numeric value of is represented as a string. For example "65526"
A string representation where the ASN numeric value of is represented as a string
Converts the ASN value to binary numbers represented with strings
a binary string representation of the value of the ASN number
A string representation where the asn value is prefixed by "ASN". For example "AS65526"
A string representation where the asn value is prefixed by "ASN"
A convenience method for creating an instance of Asn from a string
The given string can be in asplain, asdot or asdot+ representation format. {@see https://tools.ietf.org/html/rfc5396} for more information on the different ASN string representation
the asn string. In either asplain, asdot or asdot+ format
the constructed ASN instance
Generated using TypeDoc
Represents an Autonomous System Number. Which is a number that is used to identify a group of IP addresses with a common, clearly defined routing policy.
https://en.wikipedia.org/wiki/Autonomous_system_(Internet)
https://tools.ietf.org/html/rfc5396