- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 61 for valid (0.16 sec)
-
android/guava/src/com/google/common/net/InetAddresses.java
* @throws IllegalArgumentException if {@code hostAddr} is not a valid IPv4 address, or IPv6 * address surrounded by square brackets */ public static InetAddress forUriString(String hostAddr) { InetAddress addr = forUriStringNoThrow(hostAddr); if (addr == null) { throw formatIllegalArgumentException("Not a valid URI IP literal: '%s'", hostAddr); } return addr; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 44K bytes - Viewed (1) -
android/guava/src/com/google/common/base/Preconditions.java
* trick of throwing an exception in the middle of the construction of another exception. Hotspot * is fine with that. */ /** * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 11 11:52:14 GMT 2024 - 52.9K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
/** * Validation method used by {@code from} to ensure that the domain name is syntactically valid * according to RFC 1035. * * @return Is the domain name syntactically valid? */ private static boolean validateSyntax(List<String> parts) { int lastIndex = parts.size() - 1; // Validate the last part specially, as it has different syntax rules. if (!validatePart(parts.get(lastIndex), true)) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 05 20:47:23 GMT 2024 - 28K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java
* containers with a known order other than insertion order must override this method. * * <p>Note: This default implementation is overkill (but valid) for an unordered container. An * equally valid implementation for an unordered container is to throw an exception. The chosen * implementation, however, has the advantage of working for insertion-ordered containers, as * well. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
fail(); } catch (NumberFormatException expected) { } } } public void testParseIntThrowsExceptionForInvalidRadix() { // Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX, // inclusive. // // Note: According to the spec, a NumberFormatException is thrown for a number that is not
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StringsTest.java
assertEquals("abc", Strings.commonPrefix(new StringBuffer("abcdef"), "abcxyz")); // Identical valid surrogate pairs. assertEquals( "abc\uD8AB\uDCAB", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz")); // Differing valid surrogate pairs. assertEquals("abc", Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCACxyz")); // One invalid pair.
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 10.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
* <li>{@code 0X}<i>HexDigits</i> * <li>{@code #}<i>HexDigits</i> * <li>{@code 0}<i>OctalDigits</i> * </ul> * * @throws NumberFormatException if the string does not contain a valid unsigned {@code int} value * @since 13.0 */ @CanIgnoreReturnValue public static int decode(String stringValue) { ParseRequest request = ParseRequest.fromString(stringValue); try {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 13.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java
} public void testOf_one() { ImmutableClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.of(int.class, 1); assertEquals(1, map.size()); } public void testCopyOf_map_valid() { Map<Class<? extends Number>, Number> in = Maps.newHashMap(); in.put(Number.class, 0); in.put(Double.class, Math.PI); ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableSet.java
private final transient int hashCode; // the same values as `elements` in hashed positions (plus nulls) @VisibleForTesting final transient @Nullable Object[] table; // 'and' with an int to get a valid table index. private final transient int mask; private final transient int size; RegularImmutableSet( @Nullable Object[] elements, int hashCode, @Nullable Object[] table, int mask, int size) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 3.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ArrayTable.java
} /** * Associates the value {@code null} with the specified keys, assuming both keys are valid. If * either key is null or isn't among the keys provided during construction, this method has no * effect. * * <p>This method is equivalent to {@code put(rowKey, columnKey, null)} when both provided keys * are valid. * * @param rowKey row key of mapping to be erased
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 26.3K bytes - Viewed (0)