class NetUtils {

    public static boolean isValidIpv6(final String ip) {
        try {
            IPv6Address.fromString(ip);
        } catch (final IllegalArgumentException ex) {
            return false;
        }
        return true;
    }

}