| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
ipAddress
IP address
|
protected String |
ipAddressStr |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
clone() |
boolean |
equals(Object another) |
String |
getIpAddress()
Return the String representation of the IP address.
|
int |
hashCode() |
boolean |
isClassA()
Check if the IP address is belongs to a Class A IP address.
|
boolean |
isClassB()
Check if the IP address is belongs to a Class B IP address.
|
boolean |
isClassC()
Check if the IP address is belongs to a Class C IP address.
|
String |
toString()
Return the string representation of the IP Address following the common decimal-dotted notation xxx.xxx.xxx.xxx.
|
protected int ipAddress
protected String ipAddressStr
public IPAddress(String ipAddressStr)
public IPAddress(int address)
public final String getIpAddress()
public String toString()
public final boolean isClassA()
true if the encapsulated IP address belongs to a class A IP address, otherwise
returne false.public final boolean isClassB()
true if the encapsulated IP address belongs to a class B IP address, otherwise
returne false.public final boolean isClassC()
true if the encapsulated IP address belongs to a class C IP address, otherwise
returne false.protected Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionCopyright © 2022. All rights reserved.