org.opengts.util
Class IPTools.IPAddressList
java.lang.Object
org.opengts.util.IPTools.IPAddressList
- Enclosing class:
- IPTools
public static class IPTools.IPAddressList
- extends java.lang.Object
Manages a list of IP address blocks
Can read IP addresses in the following format:
"63.196.107.82/29,209.79.220.20,192.168.1.0/24"
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IPTools.IPAddressList
public IPTools.IPAddressList()
IPTools.IPAddressList
public IPTools.IPAddressList(IPTools.IPAddress[] list)
IPTools.IPAddressList
public IPTools.IPAddressList(java.lang.String ipListStr)
getIPList
public java.util.List<IPTools.IPAddress> getIPList()
addIPAddress
public void addIPAddress(IPTools.IPAddress ipAddr)
addIPAddress
public void addIPAddress(IPTools.IPAddress[] ipAddr)
addIPAddress
public void addIPAddress(java.lang.String ipAddr)
contains
public boolean contains(java.lang.String ipAddr)
isMatch
public boolean isMatch(java.lang.String ipAddr)
isEmpty
public boolean isEmpty()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object