An base class for IPv4 and IPv6 addresses.
Performs a comparison between two addresses.
If the two addresses are equal, returns 0. If the address is greater than the parameter, returns 1. If the address is less than the parameter, returns -1.
Determine if the two addresses are equal.
If the two addresses are in different type, eg. one is IPv4Addr and another is IPv6Addr, the function will always return false.
IPv4Addr
IPv6Addr
false
Determine if the address is greater than the parameter.
If the two addresses are in different type, eg. one is IPv4Addr and another is IPv6Addr, the function will throw an error.
Determine if the address is greater than or equal to the parameter.
Determine if the address is the maximum possible address.
Determine if the address is the minimum possible address.
Determine if the given object is an instance of the address' class.
Determine if the address is less than the parameter.
Determine if the address is less than or equal to the parameter.
Determine if the two addresses are unequal.
If the two addresses are in different type, eg. one is IPv4Addr and another is IPv6Addr, the function will always return true.
true
Create a new instance of the address' class. This method is called by the base class most of the time.
Get the next address of the address.
Get the previous address of the address.
Get the corresponding integer of the address.
Get the string representation of the address.
An base class for IPv4 and IPv6 addresses.