@Test public void multipleNotAuthorised() { assertFalse(underTest.isAuthorised(Arrays.asList("1.2.3.4/24", "1.2.4.4/24"), "1.2.5.4")); }
public boolean isAuthorised(List<String> cidrBlocks, String address) { return any(cache.getUnchecked(cidrBlocks), cidrBlock -> cidrBlock.isInRange(address)); }
CidrBlockAuthorisation { public boolean isAuthorised(List<String> cidrBlocks, String address) { return any(cache.getUnchecked(cidrBlocks), cidrBlock -> cidrBlock.isInRange(address)); } }
CidrBlockAuthorisation { public boolean isAuthorised(List<String> cidrBlocks, String address) { return any(cache.getUnchecked(cidrBlocks), cidrBlock -> cidrBlock.isInRange(address)); } CidrBlockAuthorisation(); }
CidrBlockAuthorisation { public boolean isAuthorised(List<String> cidrBlocks, String address) { return any(cache.getUnchecked(cidrBlocks), cidrBlock -> cidrBlock.isInRange(address)); } CidrBlockAuthorisation(); boolean isAuthorised(List<String> cidrBlocks, String address); }
CidrBlockAuthorisation { public boolean isAuthorised(List<String> cidrBlocks, String address) { return any(cache.getUnchecked(cidrBlocks), cidrBlock -> cidrBlock.isInRange(address)); } CidrBlockAuthorisation(); boolean isAuthorised(List<String> cidrBlocks, String address);  }