Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 613 for IllegalArgumentException (0.13 sec)

  1. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

          return Primitives.wrap(type).cast(value);
        }
    
        /**
         * Returns a new immutable class-to-instance map containing the entries provided to this
         * builder.
         *
         * @throws IllegalArgumentException if duplicate keys were added
         */
        public ImmutableClassToInstanceMap<B> build() {
          ImmutableMap<Class<? extends B>, B> map = mapBuilder.buildOrThrow();
          if (map.isEmpty()) {
            return of();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          if (Helpers.equal(i.next().getKey(), newEntry.getKey())) {
            i.set(newEntry);
            return;
          }
        }
    
        throw new IllegalArgumentException(
            Platform.format("key %s not found in entries %s", newEntry.getKey(), expected));
      }
    
      /**
       * Wrapper for {@link Map#get(Object)} that forces the caller to pass in a key of the same type as
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return new Iterator<Integer>() {
                  @Override
                  public void remove() {
                    // Wrong exception type.
                    throw new IllegalArgumentException();
                  }
    
                  @Override
                  public Integer next() {
                    // Wrong exception type.
                    throw new UnsupportedOperationException();
                  }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        /**
         * Exceptions should be {@link NullPointerException}, {@link IllegalArgumentException}, or
         * {@link UnsupportedOperationException}.
         */
        NPE_IAE_OR_UOE() {
          @Override
          public boolean isExpectedType(Throwable cause) {
            return cause instanceof NullPointerException
                || cause instanceof IllegalArgumentException
                || cause instanceof UnsupportedOperationException;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        } catch (ioe: IOException) {
          // https://github.com/square/okhttp/issues/5840
          when (ioe.cause) {
            is IllegalArgumentException -> {
              assertEquals("Android internal error", ioe.message)
            }
            is CertificateException -> {
              assertTrue(ioe.cause?.cause is IllegalArgumentException)
              assertEquals(true, ioe.cause?.cause?.message?.startsWith("Invalid input to toASCII"))
            }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList.Builder<String> builder = ImmutableList.builder();
        for (int i = 0; i < 100; i++) {
          builder.add("a");
        }
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> builder.addAll(nCopies(Integer.MAX_VALUE - 50, "a")));
        assertThat(expected).hasMessageThat().contains("cannot store more than MAX_VALUE elements");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Returns a {@code UnsignedInteger} representing the same value as the specified {@link
       * BigInteger}. This is the inverse operation of {@link #bigIntegerValue()}.
       *
       * @throws IllegalArgumentException if {@code value} is negative or {@code value >= 2^32}
       */
      public static UnsignedInteger valueOf(BigInteger value) {
        checkNotNull(value);
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Returns a {@code UnsignedInteger} representing the same value as the specified {@link
       * BigInteger}. This is the inverse operation of {@link #bigIntegerValue()}.
       *
       * @throws IllegalArgumentException if {@code value} is negative or {@code value >= 2^32}
       */
      public static UnsignedInteger valueOf(BigInteger value) {
        checkNotNull(value);
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * generated builder is equivalent to that returned by {@link #builder}, but may perform better if
       * {@code expectedKeys} is a good estimate.
       *
       * @throws IllegalArgumentException if {@code expectedKeys} is negative
       * @since 33.3.0
       */
      public static <K, V> Builder<K, V> builderWithExpectedKeys(int expectedKeys) {
        checkNonnegative(expectedKeys, "expectedKeys");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Queues.java

        return new LinkedBlockingDeque<>();
      }
    
      /**
       * Creates an empty {@code LinkedBlockingDeque} with the given (fixed) capacity.
       *
       * @throws IllegalArgumentException if {@code capacity} is less than 1
       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top