Constructor for creating an instance of IPv4Mask. The passed strings need to be a valid IPv4 mask number in dot-decimal notation.
The passed string in dot-decimal notation
The number of bits needed to represents the value of the IPv4 number
The maximum bit size (i.e. binary value) of the IPv4 number in BigInteger
An array of Octet's
The cidr prefix represented by this mask
The string character used to separate the individual octets when the IPv4 is rendered as strings
The type of IP number. Value is one of the values of the IPNumType enum
The decimal value represented by the IPv4 mask 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 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 IPv4 number
the next IPv4 number
Returns the previous IPv4 number
the previous IPv4 number
Gets the binary string representation of an IP number.
the string binary representation.
Returns this IPv4 number as a IPv4-Mapped IPv6 Address
The IPv4-Mapped IPv6 Address allows an IPv4 number to be embedded within an IPv6 number
{@see https://tools.ietf.org/html/rfc4291#section-2.5.5} for more information on the IPv4-Mapped IPv6 Address
an IPv6 number with the IPv4 embedded within it
A string representation of the IPv4 number. The string representation is in dot-decimal notation
The string representation in dot-decimal notation
A convenience method for creating an instance of IPv4Mask. The passed strings need to be a valid IPv4 number in dot-decimal notation.
The passed string in dot-decimal notation
the instance of IPv4Mask
Alias for IPv4.fromDecimalDottedString.
the IP number in dot-decimal notation
the IPv4 instance
Generated using TypeDoc
The IPv4Mask can be seen as a specialized IPv4 number where, in a 32 bit number, starting from the left, you have continuous bits turned on (with 1 value) followed by bits turned off (with 0 value). In networking, it is used to demarcate which bits are used to identify a network, and the ones that are used to identify hosts on the network