Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for 9000 (0.12 sec)

  1. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

      @GwtIncompatible // blocking wait
      public void testRunIdempotency() throws Exception {
        final int numThreads = 10;
        final ExecutorService executor = Executors.newFixedThreadPool(numThreads);
        for (int i = 0; i < 1000; i++) {
          final AtomicInteger counter = new AtomicInteger();
          final TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(
                  new Callable<Integer>() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        long startTime = System.nanoTime();
        long ns = millis * 1000 * 1000;
        for (; ; ) {
          if (millis > 0L) Thread.sleep(millis);
          else // too short to sleep
          Thread.yield();
          long d = ns - (System.nanoTime() - startTime);
          if (d > 0L) millis = d / (1000 * 1000);
          else break;
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        public SampleElements<Entry<String, Collection<Integer>>> samples() {
          return new SampleElements<>(
              mapEntry("one", collectionOf(10000)),
              mapEntry("two", collectionOf(-2000)),
              mapEntry("three", collectionOf(300)),
              mapEntry("four", collectionOf(-40)),
              mapEntry("five", collectionOf(5)));
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SetsTest.java

        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewHashSetWithExpectedSizeLarge() {
        HashSet<Integer> set = Sets.newHashSetWithExpectedSize(1000);
        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewHashSetFromIterator() {
        HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION.iterator());
        verifySetContents(set, SOME_COLLECTION);
    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)
  5. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    @GwtIncompatible // threads
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
        final int getsPerTask = 1000;
        final int deltaRange = 10000;
        final String key = "key";
    
        final AtomicLongMap<String> map = AtomicLongMap.create();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // and the approximate actual delay, to be robust to variance in thread scheduling.
        char overWaitNanosFirstDigit =
            Long.toString(
                    thread.timeSpentBlocked - TimeUnit.MILLISECONDS.toNanos(longWait ? 5000 : 3000))
                .charAt(0);
        if (overWaitNanosFirstDigit < '4') {
          overWaitNanosFirstDigit = '9';
        }
        String nanosRegex = "[4-" + overWaitNanosFirstDigit + "][0-9]+";
        assertWithMessage(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        mmHeap.addAll(
            Lists.newArrayList(1, 20, 1000, 2, 3, 30, 40, 10, 11, 12, 13, 200, 300, 500, 400));
        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        Iterator<Integer> it = mmHeap.iterator();
        assertEquals((Integer) 1, it.next());
        assertEquals((Integer) 20, it.next());
        assertEquals((Integer) 1000, it.next());
        assertEquals((Integer) 2, it.next());
        it.remove();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          radixEncodeParseAndAssertEquals((long) 0, radix);
          radixEncodeParseAndAssertEquals((long) 8000, radix);
          radixEncodeParseAndAssertEquals((long) -8000, radix);
          radixEncodeParseAndAssertEquals(MAX_VALUE, radix);
          radixEncodeParseAndAssertEquals(MIN_VALUE, radix);
          assertWithMessage("Radix: " + radix)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          radixEncodeParseAndAssertEquals((long) 0, radix);
          radixEncodeParseAndAssertEquals((long) 8000, radix);
          radixEncodeParseAndAssertEquals((long) -8000, radix);
          radixEncodeParseAndAssertEquals(MAX_VALUE, radix);
          radixEncodeParseAndAssertEquals(MIN_VALUE, radix);
          assertWithMessage("Radix: " + radix)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        // Tests that serializing a map, its keySet, and values only writes the underlying data once.
    
        Entry<Integer, Integer>[] entries = (Entry<Integer, Integer>[]) new Entry<?, ?>[1000];
        for (int i = 0; i < 1000; i++) {
          entries[i] = ImmutableMap.entryOf(i, i);
        }
    
        ImmutableMap<Integer, Integer> map = RegularImmutableMap.fromEntries(entries);
        Set<Integer> keySet = map.keySet();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
Back to top