com.limegroup.gnutella.filters
Class IPList

java.lang.Object
  extended bycom.limegroup.gnutella.filters.IPList

public class IPList
extends java.lang.Object

A mutable list of IP addresses. More specifically, a list of sets of addresses, like "18.239.0.*". Provides fast operations to find if an address is in the list. Used to implement IPFilter. Not synchronized.


Constructor Summary
IPList()
           
 
Method Summary
 void add(java.lang.String ip_str)
          Adds a certain IP to the IPList.
 boolean contains(IP ip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPList

public IPList()
Method Detail

add

public void add(java.lang.String ip_str)
Adds a certain IP to the IPList.

Parameters:
ip_str - a String containing the IP, see IP.java for formatting

contains

public boolean contains(IP ip)