@Test public void testAclIpSpace_empty() { IpSpace ipSpace = AclIpSpace.builder() .thenRejecting(Prefix.parse("0.0.0.0/32").toIpSpace()) .thenRejecting(Prefix.parse("0.0.0.1/32").toIpSpace()) .thenPermitting(Prefix.parse("0.0.0.0/31").toIpSpace()) .build(); assertThat(_ipSpaceRepresentative.getRepresentative(ipSpace), equalTo(Optional.empty())); }
public Optional<Ip> getRepresentative(IpSpace ipSpace) { return _ipSpaceToBDD .getBDDInteger() .getValueSatisfying(_ipSpaceToBDD.visit(ipSpace)) .map(Ip::create); }
IpSpaceRepresentative { public Optional<Ip> getRepresentative(IpSpace ipSpace) { return _ipSpaceToBDD .getBDDInteger() .getValueSatisfying(_ipSpaceToBDD.visit(ipSpace)) .map(Ip::create); } }
IpSpaceRepresentative { public Optional<Ip> getRepresentative(IpSpace ipSpace) { return _ipSpaceToBDD .getBDDInteger() .getValueSatisfying(_ipSpaceToBDD.visit(ipSpace)) .map(Ip::create); } IpSpaceRepresentative(); }
IpSpaceRepresentative { public Optional<Ip> getRepresentative(IpSpace ipSpace) { return _ipSpaceToBDD .getBDDInteger() .getValueSatisfying(_ipSpaceToBDD.visit(ipSpace)) .map(Ip::create); } IpSpaceRepresentative(); Optional<Ip> getRepresentative(IpSpace ipSpace); }
IpSpaceRepresentative { public Optional<Ip> getRepresentative(IpSpace ipSpace) { return _ipSpaceToBDD .getBDDInteger() .getValueSatisfying(_ipSpaceToBDD.visit(ipSpace)) .map(Ip::create); } IpSpaceRepresentative(); Optional<Ip> getRepresentative(IpSpace ipSpace);  }