public static Predicate<InetAddress> ofExact(String address) {
        requireNonNull(address, "address");
        try {
            final InetAddress inetAddress = InetAddress.getByName(address);
            return ofExact(inetAddress);
        } catch (UnknownHostException e) {
            throw new IllegalArgumentException("Invalid address: " + address, e);
        }
    }
public static Predicate < InetAddress > ofExact ( String address ) { requireNonNull ( address , "address" ) ; try { final InetAddress inetAddress = InetAddress . getByName ( address ) ; return ofExact ( inetAddress ) ; } catch ( UnknownHostException e ) { throw new IllegalArgumentException ( "Invalid address: " + address , e ) ; } }
Returns a {@link Predicate} which returns {@code true} if the given {@link InetAddress} equals to
the specified {@code address}.

@param address the expected IP address string, e.g. {@code 10.0.0.1}