org.dspace.statistics.util
Class IPTable
java.lang.Object
org.dspace.statistics.util.IPTable
public class IPTable
- extends Object
A Spare v4 IPTable implementation that uses nested HashMaps
TO optimize IP Address matching over ranges of IP Addresses.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPTable
public IPTable()
add
public void add(String ip)
throws IPTable.IPFormatException
- Can be full v4 IP, subnet or range string
- Parameters:
ip -
- Throws:
IPTable.IPFormatException
contains
public boolean contains(String ip)
throws IPTable.IPFormatException
- Throws:
IPTable.IPFormatException
toSet
public Set<String> toSet()
- Returns:
Copyright © 2010 The DSpace Foundation. All Rights Reserved.