@Test public void testIsIPv4WithIPv6() { assertFalse(FormattedDomain.isIPv4("2001:db8::1 ")); assertFalse(FormattedDomain.isIPv4("2001:db8:0:1:1:1:1:1")); assertFalse(FormattedDomain.isIPv4("[2001:db8:a0b:12f0::1]")); }
@VisibleForTesting static boolean isIPv4(final String host) { return Patterns.IP_ADDRESS.matcher(host).matches(); }
FormattedDomain { @VisibleForTesting static boolean isIPv4(final String host) { return Patterns.IP_ADDRESS.matcher(host).matches(); } }
FormattedDomain { @VisibleForTesting static boolean isIPv4(final String host) { return Patterns.IP_ADDRESS.matcher(host).matches(); } private  FormattedDomain(); }
FormattedDomain { @VisibleForTesting static boolean isIPv4(final String host) { return Patterns.IP_ADDRESS.matcher(host).matches(); } private  FormattedDomain(); @NonNull @WorkerThread // calls PublicSuffix methods. static String format(@NonNull final Context context, @NonNull final URI uri,
                                final boolean shouldIncludePublicSuffix, @IntRange(from = 0) final int subdomainCount); static String stripCommonPrefixes(@NonNull final String host); }
FormattedDomain { @VisibleForTesting static boolean isIPv4(final String host) { return Patterns.IP_ADDRESS.matcher(host).matches(); } private  FormattedDomain(); @NonNull @WorkerThread // calls PublicSuffix methods. static String format(@NonNull final Context context, @NonNull final URI uri,
                                final boolean shouldIncludePublicSuffix, @IntRange(from = 0) final int subdomainCount); static String stripCommonPrefixes(@NonNull final String host);  }