@Test public void shouldExcept10Ranges() throws IPStringException { ranges = getPrivateRanges(); assertTrue(ranges.contains("10.0.0.1")); assertTrue(ranges.contains("10.250.0.2")); assertTrue(ranges.contains("10.33.0.3")); }
public boolean contains(long ipLong) { boolean out; out = false; for (IPv4Range ipv4Range : this.ranges) { if (ipv4Range.contains(ipLong)) { out = true; return out; } } return out; }
IPv4Ranges { public boolean contains(long ipLong) { boolean out; out = false; for (IPv4Range ipv4Range : this.ranges) { if (ipv4Range.contains(ipLong)) { out = true; return out; } } return out; } }
IPv4Ranges { public boolean contains(long ipLong) { boolean out; out = false; for (IPv4Range ipv4Range : this.ranges) { if (ipv4Range.contains(ipLong)) { out = true; return out; } } return out; } IPv4Ranges(); }
IPv4Ranges { public boolean contains(long ipLong) { boolean out; out = false; for (IPv4Range ipv4Range : this.ranges) { if (ipv4Range.contains(ipLong)) { out = true; return out; } } return out; } 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 contains(long ipLong) { boolean out; out = false; for (IPv4Range ipv4Range : this.ranges) { if (ipv4Range.contains(ipLong)) { out = true; return out; } } return out; } 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);  }