Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for 30 (0.16 sec)

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

        // indicates that the value 40 was stored in forgetMeNot, so it is
        // returned in the last call to it.next(). Without it, 30 should be the last
        // item returned by the iterator.
        Integer lastItem = 0;
        for (Integer tmp : mmHeap) {
          lastItem = tmp;
        }
        assertEquals((Integer) 30, lastItem);
      }
    
      /**
       * This tests a special case where removeAt has to trickle an element first down one level from a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractSequentialIterator.java

     *
     * <p>Example:
     *
     * <pre>{@code
     * Iterator<Integer> powersOfTwo =
     *     new AbstractSequentialIterator<Integer>(1) {
     *       protected Integer computeNext(Integer previous) {
     *         return (previous == 1 << 30) ? null : previous * 2;
     *       }
     *     };
     * }</pre>
     *
     * @author Chris Povirk
     * @since 12.0 (in Guava as {@code AbstractLinkedIterator} since 8.0)
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
          binomialArguments[i][1] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials.length);
          int k = binomialArguments[i][1];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      public void testRemove_nonePresent() {
        when(backingMap.get(KEY)).thenReturn(null);
    
        assertEquals(0, multiset.remove(KEY, 400));
      }
    
      public void testRemove_someRemaining() {
        int countToRemove = 30;
        int countRemaining = 1;
        AtomicInteger current = new AtomicInteger(countToRemove + countRemaining);
    
        when(backingMap.get(KEY)).thenReturn(current);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. 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
    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)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Object> sumToEighthMaxIntElements =
            newHashSet(objectWithHashCode(1 << 29), objectWithHashCode(0));
        assertPowerSetHashCode(1 << 30, sumToEighthMaxIntElements);
    
        Set<Object> sumToQuarterMaxIntElements =
            newHashSet(objectWithHashCode(1 << 30), objectWithHashCode(0));
        assertPowerSetHashCode(1 << 31, sumToQuarterMaxIntElements);
      }
    
      public void testPowerSetShowOff() {
    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)
  7. android/guava-tests/test/com/google/common/base/StringsTest.java

        }
    
        try {
          Strings.repeat("x", -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // Massive string
          Strings.repeat("12345678", (1 << 30) + 3);
          fail();
        } catch (ArrayIndexOutOfBoundsException expected) {
        }
      }
    
      // TODO: could remove if we got NPT working in GWT somehow
      public void testRepeat_null() {
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertEquals(20, counter.getCount());
      }
    
      public void testReadArrayEOF() throws IOException {
        assertEquals(20, counter.read(new byte[30]));
        assertEquals(20, counter.getCount());
        assertEquals(-1, counter.read(new byte[30]));
        assertEquals(20, counter.getCount());
      }
    
      @SuppressWarnings("CheckReturnValue") // calling read() to skip a byte
      public void testMark() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      private static final Joiner JOINER_ON_STRING = Joiner.on(DELIMITER_STRING);
      private static final Joiner JOINER_ON_CHARACTER = Joiner.on(DELIMITER_CHARACTER);
    
      @Param({"3", "30", "300"})
      int count;
    
      @Param({"0", "1", "16", "32", "100"})
      int componentLength;
    
      private Iterable<String> components;
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            parse(
                "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
                    + "weakKeys,weakValues,expireAfterAccess=10m,expireAfterWrite=1h");
        assertEquals(10, spec.initialCapacity.intValue());
        assertEquals(20, spec.maximumSize.intValue());
        assertNull(spec.maximumWeight);
        assertEquals(30, spec.concurrencyLevel.intValue());
        assertEquals(Strength.WEAK, spec.keyStrength);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
Back to top