goog.net.IpAddress
Classgoog.net.IpAddress(address, version)
Abstract class defining an IP Address. Please use goog.net.IpAddress static methods or goog.net.Ipv4Address/Ipv6Address classes.
address
{!goog.math.Integer
}
version
{number
}
.equals(other)
other
{!goog.net.IpAddress
}
boolean
}
.fromString(address)
Parses an IP Address in a string. If the string is malformed, the function will simply return null instead of raising an exception.
address
{string
}
goog.net.IpAddress
}
.fromUriString(address)
Tries to parse a string represented as a host portion of an URI. See RFC 3986 for more details on IPv6 addresses inside URI. If the string is malformed, the function will simply return null instead of raising an exception.
address
{string
}
goog.net.IpAddress
}
.getVersion()
number
}
.toInteger()
goog.math.Integer
}
.toString()
string
}
.toUriString()
string
}