Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 613 for IllegalArgumentException (0.16 sec)

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

       * Entries appear in the result {@code ImmutableBiMap} in encounter order.
       *
       * <p>If the mapped keys or values contain duplicates (according to {@link
       * Object#equals(Object)}), an {@code IllegalArgumentException} is thrown when the collection
       * operation is performed. (This differs from the {@code Collector} returned by {@link
       * Collectors#toMap(Function, Function)}, which throws an {@code IllegalStateException}.)
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       *
       * @param permitsPerSecond the rate of the returned {@code RateLimiter}, measured in how many
       *     permits become available per second
       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero
       */
      // TODO(user): "This is equivalent to
      // {@code createWithCapacity(permitsPerSecond, 1, TimeUnit.SECONDS)}".
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ResourcesTest.java

        Resources.copy(resource, out);
        assertEquals(I18N, out.toString("UTF-8"));
      }
    
      public void testGetResource_notFound() {
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> Resources.getResource("no such resource"));
        assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found.");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/MutableNetwork.java

       * @throws IllegalArgumentException if {@code edge} already exists in the graph and connects some
       *     other endpoint pair that is not equal to {@code endpoints}
       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsParallelEdges()} or {@link #allowsSelfLoops()}
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

                  e -> e instanceof ConcurrentModificationException)
              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java

                  e -> e instanceof ConcurrentModificationException)
              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.adjacentNodes(N1)));
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.predecessors(N1)));
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.successors(N1)));
        assertNodeNotInGraphErrorMessage(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

        val builder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          builder.header(s, "Value")
        }
        assertFailsWith<IllegalArgumentException> {
          builder.addHeader(s, "Value")
        }
        assertFailsWith<IllegalArgumentException> {
          builder.header("Name", s)
        }
        assertFailsWith<IllegalArgumentException> {
          builder.addHeader("Name", s)
        }
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/XslTransformer.java

    import java.io.IOException;
    
    public class XslTransformer {
        public static void main(String[] args) throws TransformerException, IOException {
            if (args.length < 3 || args.length > 4) {
                throw new IllegalArgumentException("USAGE: <style-sheet> <source-file> <dest-file> [dest-dir]");
            }
            File stylesheet = new File(args[0]);
            File source = new File(args[1]);
            File dest = new File(args[2]);
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/LongMathTest.java

          assertThrows(IllegalArgumentException.class, () -> LongMath.ceilingPowerOfTwo(x));
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> LongMath.floorPowerOfTwo(x));
        }
      }
    
      public void testCeilingPowerOfTwoZero() {
        assertThrows(IllegalArgumentException.class, () -> LongMath.ceilingPowerOfTwo(0L));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top