Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 613 for IllegalArgumentException (0.2 sec)

  1. guava/src/com/google/common/collect/CompactHashing.java

      static Object createTable(int buckets) {
        if (buckets < 2
            || buckets > Ints.MAX_POWER_OF_TWO
            || Integer.highestOneBit(buckets) != buckets) {
          throw new IllegalArgumentException("must be power of 2 between 2^1 and 2^30: " + buckets);
        }
        if (buckets <= BYTE_MAX_SIZE) {
          return new byte[buckets];
        } else if (buckets <= SHORT_MAX_SIZE) {
          return new short[buckets];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

            super(domain, username, null);
            if ( domain == null || username == null || ansiHash == null || unicodeHash == null ) {
                throw new IllegalArgumentException("External credentials cannot be null");
            }
            this.ansiHash = ansiHash;
            this.unicodeHash = unicodeHash;
            this.hashesExternal = true;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

        try {
          return new BloomFilter<>(new LockFreeBitArray(numBits), numHashFunctions, funnel, strategy);
        } catch (IllegalArgumentException e) {
          throw new IllegalArgumentException("Could not create BloomFilter of " + numBits + " bits", e);
        }
      }
    
      /**
       * Creates a {@link BloomFilter} with the expected number of insertions and a default expected
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      /**
       * Creates a table with the specified data.
       *
       * @param data the table data, repeating the sequence row key, column key, value once per mapping
       * @throws IllegalArgumentException if the size of {@code data} isn't a multiple of 3
       * @throws ClassCastException if a data element has the wrong type
       */
      protected abstract Table<String, Integer, C> create(@Nullable Object... data);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/DiscreteDomain.java

        C current = origin;
        checkNonnegative(distance, "distance");
        for (long i = 0; i < distance; i++) {
          current = next(current);
          if (current == null) {
            throw new IllegalArgumentException(
                "overflowed computing offset(" + origin + ", " + distance + ")");
          }
        }
        return current;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

      }
    
      public void testBuilderAddCopiesIllegal() {
        ImmutableSortedMultiset.Builder<String> builder = ImmutableSortedMultiset.naturalOrder();
        assertThrows(IllegalArgumentException.class, () -> builder.addCopies("a", -2));
      }
    
      public void testBuilderSetCountHandlesNullsCorrectly() {
        ImmutableSortedMultiset.Builder<String> builder =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Bytes.java

       *
       * @param arrays zero or more {@code byte} arrays
       * @return a single array containing all the values from the source arrays, in order
       * @throws IllegalArgumentException if the total number of elements in {@code arrays} does not fit
       *     in an {@code int}
       */
      public static byte[] concat(byte[]... arrays) {
        long length = 0;
        for (byte[] array : arrays) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/Invokable.java

       *
       * @throws IllegalAccessException if this {@code Constructor} object enforces Java language access
       *     control and the underlying method or constructor is inaccessible.
       * @throws IllegalArgumentException if the number of actual and formal parameters differ; if an
       *     unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                return new FailsToPropagateException(adder);
              }
            },
            "add(",
            "exception");
      }
    
      public void testNotInterfaceType() {
        assertThrows(
            IllegalArgumentException.class,
            () ->
                new ForwardingWrapperTester()
                    .testForwarding(String.class, Functions.<String>identity()));
      }
    
      public void testNulls() {
        new NullPointerTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RangeSet.java

       *
       * <p>The returned view supports all optional operations supported by this {@code RangeSet}, with
       * the caveat that an {@link IllegalArgumentException} is thrown on an attempt to {@linkplain
       * #add(Range) add} any range not {@linkplain Range#encloses(Range) enclosed} by {@code view}.
       */
      RangeSet<C> subRangeSet(Range<C> view);
    
      // Modification
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top