@Test public void doNotMatchAddress() { assertFalse(AddressUtil.matchAnyInterface("10.235.194.23", Arrays.asList("10.235.193.*"))); }
public static boolean matchAnyInterface(final String address, final Collection<String> interfaces) { if (interfaces == null || interfaces.size() == 0) return false; for (final String interfaceMask : interfaces) { if (matchInterface(address, interfaceMask)) { return true; } } return false; }
AddressUtil { public static boolean matchAnyInterface(final String address, final Collection<String> interfaces) { if (interfaces == null || interfaces.size() == 0) return false; for (final String interfaceMask : interfaces) { if (matchInterface(address, interfaceMask)) { return true; } } return false; } }
AddressUtil { public static boolean matchAnyInterface(final String address, final Collection<String> interfaces) { if (interfaces == null || interfaces.size() == 0) return false; for (final String interfaceMask : interfaces) { if (matchInterface(address, interfaceMask)) { return true; } } return false; } private  AddressUtil(); }
AddressUtil { public static boolean matchAnyInterface(final String address, final Collection<String> interfaces) { if (interfaces == null || interfaces.size() == 0) return false; for (final String interfaceMask : interfaces) { if (matchInterface(address, interfaceMask)) { return true; } } return false; } private  AddressUtil(); static boolean matchAnyInterface(final String address, final Collection<String> interfaces); static boolean matchInterface(final String address, final String interfaceMask); static AddressHolder getAddressHolder(String address); static AddressHolder getAddressHolder(final String address, int defaultPort); static boolean isIpAddress(String address); static InetAddress fixScopeIdAndGetInetAddress(final InetAddress inetAddress); static Inet6Address getInetAddressFor(final Inet6Address inetAddress, String scope); static Collection<Inet6Address> getPossibleInetAddressesFor(final Inet6Address inet6Address); static Collection<String> getMatchingIpv4Addresses(final AddressMatcher addressMatcher); static AddressMatcher getAddressMatcher(String address); }
AddressUtil { public static boolean matchAnyInterface(final String address, final Collection<String> interfaces) { if (interfaces == null || interfaces.size() == 0) return false; for (final String interfaceMask : interfaces) { if (matchInterface(address, interfaceMask)) { return true; } } return false; } private  AddressUtil(); static boolean matchAnyInterface(final String address, final Collection<String> interfaces); static boolean matchInterface(final String address, final String interfaceMask); static AddressHolder getAddressHolder(String address); static AddressHolder getAddressHolder(final String address, int defaultPort); static boolean isIpAddress(String address); static InetAddress fixScopeIdAndGetInetAddress(final InetAddress inetAddress); static Inet6Address getInetAddressFor(final Inet6Address inetAddress, String scope); static Collection<Inet6Address> getPossibleInetAddressesFor(final Inet6Address inet6Address); static Collection<String> getMatchingIpv4Addresses(final AddressMatcher addressMatcher); static AddressMatcher getAddressMatcher(String address);  }