The goog.net.Ipv4Address Class

goog.net.Ipv4Address
> goog.net.IpAddress

goog.net.Ipv4Address(address)

Takes a string or a number and returns a IPv4 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 IPv4).

@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.

.getVersion()

Inherited from goog.net.IpAddress .

returns {number}
The IP Address version.

.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.