Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 103 for Invalid (1.11 sec)

  1. android/guava/src/com/google/common/primitives/Chars.java

       *     minLength}
       */
      public static char[] ensureCapacity(char[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/InetAddresses.java

       * @return {@link Inet4Address} corresponding to the supplied byte array
       * @throws IllegalArgumentException if a valid {@link Inet4Address} can not be created
       */
      private static Inet4Address getInet4Address(byte[] bytes) {
        checkArgument(
            bytes.length == 4,
            "Byte array has invalid length for an IPv4 address: %s != 4.",
            bytes.length);
    
        // Given a 4-byte array, this cast should always succeed.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMultimap.java

         *
         * @throws NullPointerException if {@code key}, {@code values}, or any element in {@code values}
         *     is null. The builder is left in an invalid state.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          if (key == null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

        // When called at high frequency, boxing size generates too much garbage,
        // so avoid doing that if we can.
        if (size < 0) {
          throw new IllegalArgumentException(String.format("Invalid size: %s", size));
        }
        return newDataOutput(new ByteArrayOutputStream(size));
      }
    
      /**
       * Returns a new {@link ByteArrayDataOutput} instance which writes to the given {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 17 18:59:58 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

        return new Segment<>(this, initialCapacity, maxSegmentWeight, statsCounter);
      }
    
      /**
       * Gets the value from an entry. Returns null if the entry is invalid, partially-collected,
       * loading, or expired. Unlike {@link Segment#getLiveValue} this method does not attempt to clean
       * up stale entries. As such it should only be called outside a segment context, such as during
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         * unsigned long. This is useful for detecting overflow while parsing a string representation of
         * a number. Does not verify whether supplied radix is valid, passing an invalid radix will give
         * undefined results or an ArrayIndexOutOfBoundsException.
         */
        static boolean overflowInParse(long current, int digit, int radix) {
          if (current >= 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        try {
          Preconditions.checkElementIndex(1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
          // don't care what the message text is, as this is an invalid usage of
          // the Preconditions class, unlike all the other exceptions it throws
        }
      }
    
      public void testCheckElementIndex_negative() {
        try {
          Preconditions.checkElementIndex(-1, 1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Bytes.java

       *     minLength}
       */
      public static byte[] ensureCapacity(byte[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Preconditions.java

     * UnsupportedOperationException} in the situations they are intended for.
     *
     * <h3>Non-preconditions</h3>
     *
     * <p>It is of course possible to use the methods of this class to check for invalid conditions
     * which are <i>not the caller's fault</i>. Doing so is <b>not recommended</b> because it is
     * misleading to future readers of the code and of stack traces. See <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

        stream.defaultReadObject();
        int keyCount = stream.readInt();
        if (keyCount < 0) {
          throw new InvalidObjectException("Invalid key count " + keyCount);
        }
        ImmutableMap.Builder<Object, ImmutableList<Object>> builder = ImmutableMap.builder();
        int tmpSize = 0;
    
        for (int i = 0; i < keyCount; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top