Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 157 for tool (0.12 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        // Now we hit the cap
        assertEquals(1 << 30, ImmutableSet.chooseTableSize(1 << 29));
        assertEquals(1 << 30, ImmutableSet.chooseTableSize((1 << 30) - 1));
    
        // Now we've gone too far
        assertThrows(IllegalArgumentException.class, () -> ImmutableSet.chooseTableSize(1 << 30));
      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
      public void testResizeTable() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Strings.java

        final int len = string.length();
        final long longSize = (long) len * (long) count;
        final int size = (int) longSize;
        if (size != longSize) {
          throw new ArrayIndexOutOfBoundsException("Required array size too large: " + longSize);
        }
    
        final char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Joiner.java

         * on what they know about the particular Joiner instances the calls are performed on.
         *
         * (In addition to useForNull, we also offer skipNulls. It, too, tolerates null inputs, but its
         * tolerance is implemented differently: Its implementation avoids calling this toString(Object)
         * method in the first place.)
         */
        requireNonNull(part);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          assertTrue(afterBurst >= 1000);
        }
      }
    
      /**
       * This neat test shows that no matter what weights we use in our requests, if we push X amount of
       * permits in a cool state, where X = rate * timeToCoolDown, and we have specified a
       * timeToWarmUp() period, it will cost as the prescribed amount of time. E.g., calling
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      Object writeReplace() {
        return super.writeReplace();
      }
    
      // This class is never actually serialized directly, but we have to make the
      // warning go away (and suppressing would suppress for all nested classes too)
      @J2ktIncompatible // serialization
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testBinomialSmall() {
        runBinomialTest(0, 30);
      }
    
      @GwtIncompatible // too slow
      public void testBinomialLarge() {
        runBinomialTest(31, 100);
      }
    
      // Depends on the correctness of BigIntegerMath.factorial
      private static void runBinomialTest(int firstN, int lastN) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testBinomialSmall() {
        runBinomialTest(0, 30);
      }
    
      @GwtIncompatible // too slow
      public void testBinomialLarge() {
        runBinomialTest(31, 100);
      }
    
      // Depends on the correctness of BigIntegerMath.factorial
      private static void runBinomialTest(int firstN, int lastN) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

            current.succ = null;
    
            current = next;
          }
          successor(header, header);
          rootReference.clear();
        } else {
          // TODO(cpovirk): Perhaps we can optimize in this case, too?
          Iterators.clear(entryIterator());
        }
      }
    
      private Entry<E> wrapEntry(final AvlNode<E> baseEntry) {
        return new Multisets.AbstractEntry<E>() {
          @Override
          @ParametricNullness
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        assertFalse(i.hasNext());
        try {
          i.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
      }
    
      @GwtIncompatible // too slow for GWT
      public void testPowerSetIteration_iteratorTester() {
        ImmutableSet<Integer> elements = ImmutableSet.of(1, 2);
    
        Set<Set<Integer>> expected = newLinkedHashSet();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        throw new InvalidObjectException("Use SerializedForm");
      }
    
      // This class is never actually serialized directly, but we have to make the
      // warning go away (and suppressing would suppress for all nested classes too)
      private static final long serialVersionUID = 0;
    
      /**
       * Not supported. Use {@link #toImmutableSortedMap}, which offers better type-safety, instead.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top