java.lang.Object | |||
java.net.InetAddress | Serializable | ||
java.net.Inet4Address |
boolean | equals(Object obj) | |||||
Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise. | ||||||
String | getHostAddress() | |||||
Returns a String representation of the IP address. | ||||||
int | hashCode() | |||||
Overrides the basic hashcode function. | ||||||
boolean | isAnyLocalAddress() | |||||
Returns if the address is the ANY Address | ||||||
boolean | isLinkLocalAddress() | |||||
Returns whether this address has link-local scope. | ||||||
boolean | isLoopbackAddress() | |||||
Returns true if the address is a loopback address. | ||||||
boolean | isMCGlobal() | |||||
Returns true if an address is a global multicast address. | ||||||
boolean | isMCLinkLocal() | |||||
Returns true if the address is a link-local address.The valid range for IPv4 link-local addresses is: 224.0.0.0 to 239.0.0.255 Hence a mask of 111000000000000000000000 = 0xE00000 | ||||||
boolean | isMCNodeLocal() | |||||
Returns false for all IPv4 addresses. | ||||||
boolean | isMCOrgLocal() | |||||
Returns true if the address is a organization-local address. | ||||||
boolean | isMCSiteLocal() | |||||
Returns true if the address is a site-local address.The valid range for IPv4 site-local addresses is: 239.255.0.0 to 239.255.255.255 Hence a mask of 11101111 11111111 = 0xEFFF. | ||||||
boolean | isMulticastAddress() | |||||
Returns true if the address is a multicast address. | ||||||
boolean | isSiteLocalAddress() | |||||
Returns whether this address has site-local scope. |
obj | the object to be tested for equality |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:56 |