@Test public void shouldContainAddress() throws IPException { for (String ip : expectedAddresses) { assertTrue(ipv4Cidrs.contains(ip)); } }
public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; }
IPv4Cidrs { public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; } }
IPv4Cidrs { public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; } IPv4Cidrs(); }
IPv4Cidrs { public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; } IPv4Cidrs(); List<IPv4Cidr> getCidrs(); void setCidrs(List<IPv4Cidr> cidrs); boolean contains(String ip); List<String> getCidrsContainingIp(String ip); }
IPv4Cidrs { public boolean contains(String ip) throws IPStringConversionException, IpTypeMissMatchException { for(IPv4Cidr cidr : cidrs){ if(cidr.contains(ip)) { return true; } } return false; } IPv4Cidrs(); List<IPv4Cidr> getCidrs(); void setCidrs(List<IPv4Cidr> cidrs); boolean contains(String ip); List<String> getCidrsContainingIp(String ip);  }