The goog.net.Ipv6Address Class

goog.net.Ipv6Address
> goog.net.IpAddress

goog.net.Ipv6Address(address)

Takes a string or a number and returns an IPv6 Address. This constructor accepts strings and instance of goog.math.Integer. If you pass a goog.math.Integer, make sure that its sign is set to positive.

address {(string|!goog.math.Integer)}
The address to store.

.MAX_NETMASK_LENGTH {number}

The Maximum length for a netmask (aka, the number of bits for IPv6).

@const

.equals(other)

Inherited from goog.net.IpAddress .

other {!goog.net.IpAddress}
The other IP Address.
returns {boolean}
true if the IP Addresses are equal.

.getMappedIpv4Address()

Will return the mapped IPv4 address in this IPv6 address.

returns {goog.net.Ipv4Address}
an IPv4 or null.

.getVersion()

Inherited from goog.net.IpAddress .

returns {number}
The IP Address version.

.isMappedIpv4Address()

returns {boolean}
true if the IPv6 contains a mapped IPv4.

.toInteger()

Inherited from goog.net.IpAddress .

returns {goog.math.Integer}
The IP Address, as an Integer.

.toString()

returns {string}
The IP Address, as a string.

.toUriString()

returns {string}
The IP Address, as an URI string following RFC 3986.