@Test public void testGetAddress() throws Exception { assertEquals("50.23.21.5", Search.getAddress(new IpAddress(Ipv4Address.getDefaultInstance("50.23.21.5")))); assertNotEquals("50.23.21.5", Search.getAddress(new IpAddress(Ipv4Address.getDefaultInstance("0.0.21.0")))); assertEquals("2001:0:0:0:0:0:0:0", Search.getAddress(new IpAddress(Ipv6Address.getDefaultInstance("2001:0:0:0:0:0:0:0")))); assertNotEquals("2001:0:0:0:0:0:0:0", Search.getAddress(new IpAddress(Ipv6Address.getDefaultInstance("2001:0:5:0:0:0:fe:0")))); }
public static String getAddress( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) { Preconditions.checkNotNull(address); if (address.getIpv4Address() != null) { return address.getIpv4Address().getValue(); } else if (address.getIpv6Address() != null) { return address.getIpv6Address().getValue(); } throw new IllegalArgumentException("Address " + address + " has illegal value."); }
Search { public static String getAddress( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) { Preconditions.checkNotNull(address); if (address.getIpv4Address() != null) { return address.getIpv4Address().getValue(); } else if (address.getIpv6Address() != null) { return address.getIpv6Address().getValue(); } throw new IllegalArgumentException("Address " + address + " has illegal value."); } }
Search { public static String getAddress( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) { Preconditions.checkNotNull(address); if (address.getIpv4Address() != null) { return address.getIpv4Address().getValue(); } else if (address.getIpv6Address() != null) { return address.getIpv6Address().getValue(); } throw new IllegalArgumentException("Address " + address + " has illegal value."); } private  Search(); }
Search { public static String getAddress( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) { Preconditions.checkNotNull(address); if (address.getIpv4Address() != null) { return address.getIpv4Address().getValue(); } else if (address.getIpv6Address() != null) { return address.getIpv6Address().getValue(); } throw new IllegalArgumentException("Address " + address + " has illegal 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 String getAddress( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) { Preconditions.checkNotNull(address); if (address.getIpv4Address() != null) { return address.getIpv4Address().getValue(); } else if (address.getIpv6Address() != null) { return address.getIpv6Address().getValue(); } throw new IllegalArgumentException("Address " + address + " has illegal 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);  }