public class IPRange extends Object
IPAddress
限定符和类型 | 方法和说明 |
---|---|
int |
getExtendedNetworkPrefix()
Return the extended extended network prefix.
|
IPAddress |
getIPAddress()
Return the encapsulated IP address.
|
IPAddress |
getIPSubnetMask()
Return the encapsulated subnet mask
|
boolean |
isIPAddressInRange(IPAddress address)
Check if the specified IP address is in the encapsulated range.
|
static String |
toDecimalString(String inBinaryIpAddress) |
String |
toString()
Convert the IP Range into a string representation.
|
public IPRange(String range)
public final IPAddress getIPAddress()
public final IPAddress getIPSubnetMask()
public final int getExtendedNetworkPrefix()
public String toString()
public boolean isIPAddressInRange(IPAddress address)
address
- The IP address to be tested.true
if the specified IP address is in the encapsulated IP range, otherwise return
false
.Copyright © 2013–2016 Alibaba Group. All rights reserved.