@Test(expected = IPBlocksOverLapException.class) public void shouldThrowOverLapExceptionIfOverlapping() throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { ranges = new IPv4Ranges(); ranges.add("127.0.0.0/24"); ranges.add("127.0.0.64/23"); }
public boolean add(String ipBlock) throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { IPv4Range range = IPv4ToolSet.ipv4BlockToRange(ipBlock); return add(range); }
IPv4Ranges { public boolean add(String ipBlock) throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { IPv4Range range = IPv4ToolSet.ipv4BlockToRange(ipBlock); return add(range); } }
IPv4Ranges { public boolean add(String ipBlock) throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { IPv4Range range = IPv4ToolSet.ipv4BlockToRange(ipBlock); return add(range); } IPv4Ranges(); }
IPv4Ranges { public boolean add(String ipBlock) throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { IPv4Range range = IPv4ToolSet.ipv4BlockToRange(ipBlock); return add(range); } IPv4Ranges(); boolean add(String ipBlock); boolean add(String lo, String hi); boolean add(IPv4Range range); Set<IPv4Range> getRanges(); @Override String toString(); boolean contains(long ipLong); boolean contains(String ipStr); }
IPv4Ranges { public boolean add(String ipBlock) throws IPBlocksOverLapException, IPStringConversionException, IPOctetOutOfRangeException, IPCidrBlockOutOfRangeException { IPv4Range range = IPv4ToolSet.ipv4BlockToRange(ipBlock); return add(range); } IPv4Ranges(); boolean add(String ipBlock); boolean add(String lo, String hi); boolean add(IPv4Range range); Set<IPv4Range> getRanges(); @Override String toString(); boolean contains(long ipLong); boolean contains(String ipStr);  }