@Test public void testExpandPrefix() throws Exception { assertEquals(0, Search.expandPrefix(IpPrefixBuilder.getDefaultInstance("5.5.5.5/32")).collect(Collectors.toList()).size()); Stream.iterate(16, n -> n + 1).limit(16).forEach(n -> { assertEquals((long) Math.pow(2, 32 - n), Search.expandPrefix(IpPrefixBuilder.getDefaultInstance("0.0.0.0/" + n)) .collect(Collectors.toList()) .size()); }); }
public static Stream<InetAddress> expandPrefix(final IpPrefix prefix) { return expandPrefix(prefix, Long.MAX_VALUE); }
Search { public static Stream<InetAddress> expandPrefix(final IpPrefix prefix) { return expandPrefix(prefix, Long.MAX_VALUE); } }
Search { public static Stream<InetAddress> expandPrefix(final IpPrefix prefix) { return expandPrefix(prefix, Long.MAX_VALUE); } private  Search(); }
Search { public static Stream<InetAddress> expandPrefix(final IpPrefix prefix) { return expandPrefix(prefix, Long.MAX_VALUE); } private  Search(); static InetAddress getBestLocalDeviceAddress(); static List<T> expandBindings(List<T> bindings, int quantity); static List<T> expandBinding(T binding, int quantity); static Stream<InetAddress> expandPrefix(final IpPrefix prefix); static Stream<InetAddress> expandPrefix(final IpPrefix prefix, final long limit); static String getAddress(
            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address); }
Search { public static Stream<InetAddress> expandPrefix(final IpPrefix prefix) { return expandPrefix(prefix, Long.MAX_VALUE); } private  Search(); static InetAddress getBestLocalDeviceAddress(); static List<T> expandBindings(List<T> bindings, int quantity); static List<T> expandBinding(T binding, int quantity); static Stream<InetAddress> expandPrefix(final IpPrefix prefix); static Stream<InetAddress> expandPrefix(final IpPrefix prefix, final long limit); static String getAddress(
            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address);  }