Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 613 for IllegalArgumentException (0.26 sec)

  1. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

        this.allowsSelfLoops = allowsSelfLoops;
        return this;
      }
    
      /**
       * Specifies the expected number of nodes in the graph.
       *
       * @throws IllegalArgumentException if {@code expectedNodeCount} is negative
       */
      @CanIgnoreReturnValue
      public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

                for (int i = 0; i < strLen; i++) {
                    if (!Character.isWhitespace(str.charAt(i))) {
                        return;
                    }
                }
            }
            throw new IllegalArgumentException(message);
        }
    
        public static Map<String, Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts) {
            Map<String, Artifact> artifactMap = new LinkedHashMap<>();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ArrayTable.java

       * @param columnKeys column keys that may be stored in the generated table
       * @throws NullPointerException if any of the provided keys is null
       * @throws IllegalArgumentException if {@code rowKeys} or {@code columnKeys} contains duplicates
       *     or if exactly one of {@code rowKeys} or {@code columnKeys} is empty.
       */
      public static <R, C, V> ArrayTable<R, C, V> create(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        }
      }
    
      public void testPriority_tooLow() {
        assertThrows(
            IllegalArgumentException.class, () -> builder.setPriority(Thread.MIN_PRIORITY - 1));
      }
    
      public void testPriority_tooHigh() {
        assertThrows(
            IllegalArgumentException.class, () -> builder.setPriority(Thread.MAX_PRIORITY + 1));
      }
    
      public void testUncaughtExceptionHandler_custom() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> reader.read(buf, 0, 11));
    
        assertThrows(IllegalArgumentException.class, () -> reader.skip(-1));
    
        assertThrows(IllegalArgumentException.class, () -> reader.mark(-1));
      }
    
      public void testMethodsThrowWhenClosed() throws IOException {
        CharSequenceReader reader = new CharSequenceReader("");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      /** Configures this builder produce a TestSuite with the given name. */
      @CanIgnoreReturnValue
      public B named(String name) {
        if (name.contains("(")) {
          throw new IllegalArgumentException(
              "Eclipse hides all characters after "
                  + "'('; please use '[]' or other characters instead of parentheses");
        }
        this.name = name;
        return self();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
      public void testOneBits() {
        assertEquals(DoubleUtils.ONE_BITS, Double.doubleToRawLongBits(1.0));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put("two", 2);
        assertMapEquals(
            builder.buildKeepingLast(), "three", 3, "one", 1, "five", 5, "four", 4, "two", 2);
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> builder.buildOrThrow());
        // We don't really care which values the exception message contains, but they should be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

        }
    
        @SuppressWarnings("MethodLength")
        @Nonnull
        @Override
        public ProjectBuilderResult build(ProjectBuilderRequest request)
                throws ProjectBuilderException, IllegalArgumentException {
            InternalMavenSession session = InternalMavenSession.from(request.getSession());
            try {
                List<ArtifactRepository> repositories = session.toArtifactRepositories(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        assertThrows(NullPointerException.class, () -> builder.put(immutableEntry((String) null, 1)));
      }
    
      public void testBuilderWithExpectedKeysNegative() {
        assertThrows(
            IllegalArgumentException.class, () -> ImmutableMultimap.builderWithExpectedKeys(-1));
      }
    
      public void testBuilderWithExpectedKeysZero() {
        ImmutableMultimap.Builder<String, String> builder =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top