java.net

Class Inet4Address

public final class Inet4Address extends InetAddress

Method Summary
booleanequals(Object obj)
Compare the current Inet4Address instance with obj
byte[]getAddress()
Returns the address of the current instance
StringgetHostAddress()
Returns the address as string
inthashCode()
Computes the hashcode of the instance
booleanisAnyLocalAddress()
Checks if this address is a wildcard address
booleanisLinkLocalAddress()
Checks if this address is a link local address
booleanisLoopbackAddress()
Checks if this address is a loopback address
booleanisMCGlobal()
Checks if this multicast address has global scope
booleanisMCLinkLocal()
Checks if this multicast address has link scope
booleanisMCNodeLocal()
Checks if this multicast address has node scope
booleanisMCOrgLocal()
Checks if this multicast address has organization scope
booleanisMCSiteLocal()
Checks if this multicast address has site scope
booleanisMulticastAddress()
Checks if the address is a multicast address
booleanisSiteLocalAddress()
Checks if this address is a site local address

Method Detail

equals

public boolean equals(Object obj)
Compare the current Inet4Address instance with obj

Parameters: obj Object to compare with

getAddress

public byte[] getAddress()
Returns the address of the current instance

getHostAddress

public String getHostAddress()
Returns the address as string

Since: 1.0.2

hashCode

public int hashCode()
Computes the hashcode of the instance

isAnyLocalAddress

public boolean isAnyLocalAddress()
Checks if this address is a wildcard address

Since: 1.4

isLinkLocalAddress

public boolean isLinkLocalAddress()
Checks if this address is a link local address

Since: 1.4

isLoopbackAddress

public boolean isLoopbackAddress()
Checks if this address is a loopback address

isMCGlobal

public boolean isMCGlobal()
Checks if this multicast address has global scope

Since: 1.4

isMCLinkLocal

public boolean isMCLinkLocal()
Checks if this multicast address has link scope

Since: 1.4

isMCNodeLocal

public boolean isMCNodeLocal()
Checks if this multicast address has node scope

Since: 1.4

isMCOrgLocal

public boolean isMCOrgLocal()
Checks if this multicast address has organization scope

Since: 1.4

isMCSiteLocal

public boolean isMCSiteLocal()
Checks if this multicast address has site scope

Since: 1.4

isMulticastAddress

public boolean isMulticastAddress()
Checks if the address is a multicast address

Since: 1.1

isSiteLocalAddress

public boolean isSiteLocalAddress()
Checks if this address is a site local address

Since: 1.4