org.opengts.util
Class IPTools.IPAddressList

java.lang.Object
  extended by 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"


Constructor Summary
IPTools.IPAddressList()
           
IPTools.IPAddressList(IPTools.IPAddress[] list)
           
IPTools.IPAddressList(java.lang.String ipListStr)
           
 
Method Summary
 void addIPAddress(IPTools.IPAddress ipAddr)
           
 void addIPAddress(IPTools.IPAddress[] ipAddr)
           
 void addIPAddress(java.lang.String ipAddr)
           
 boolean contains(java.lang.String ipAddr)
           
 boolean equals(java.lang.Object other)
           
 java.util.List<IPTools.IPAddress> getIPList()
           
 boolean isEmpty()
           
 boolean isMatch(java.lang.String ipAddr)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPTools.IPAddressList

public IPTools.IPAddressList()

IPTools.IPAddressList

public IPTools.IPAddressList(IPTools.IPAddress[] list)

IPTools.IPAddressList

public IPTools.IPAddressList(java.lang.String ipListStr)
Method Detail

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