@Test public void testPrefixIpSpace() { Prefix prefix = Prefix.parse("1.2.0.0/16"); assertThat( _ipSpaceRepresentative.getRepresentative(prefix.toIpSpace()), equalTo(Optional.of(prefix.getStartIp()))); }
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);  }