Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 454 for do (0.21 sec)

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

        Future<?> possiblyIgnoredError = testExecutor.schedule(DO_NOTHING, 10, TimeUnit.MINUTES);
        mock.assertLastMethodCalled("scheduleRunnable", 10, TimeUnit.MINUTES);
    
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
        Future<?> possiblyIgnoredError1 =
            testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

            nonnegLong[i][j] = randomNonNegativeBigInteger(Long.SIZE - 2).longValue();
          }
          do {
            for (int j = 0; j < 2; j++) {
              intsToAdd[i][j] = randomBigInteger(Integer.SIZE - 2).intValue();
            }
          } while (!Impl.GUAVA.noAddOverflow(intsToAdd[i][0], intsToAdd[i][1]));
          do {
            for (int j = 0; j < 2; j++) {
              longsToAdd[i][j] = randomBigInteger(Long.SIZE - 2).longValue();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

       * {@link java.util.Collections#checkedCollection(java.util.Collection, Class)} can suppress it
       * with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a
       * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6409434">Sun bug 6409434</a> is fixed.
       * It's unclear whether nulls were to be permitted or forbidden, but presumably the eventual fix
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

     *       as {@code findFirst()} or {@code iterator()} is invoked. (Even though {@code Stream}
     *       contains all the right method <i>signatures</i> to implement {@link Iterable}, it does not
     *       actually do so, to avoid implying repeat-iterability.) {@code FluentIterable}, on the other
     *       hand, is multiple-use, and does implement {@link Iterable}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        }
        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashMap.java

        }
    
        Object oldTable = requireTable();
        int[] entries = requireEntries();
    
        // Loop over `oldTable` to construct its replacement, ``newTable`. The entries do not move, so
        // the `keys` and `values` arrays do not need to change. But because the "short hash" now has a
        // different number of bits, we must rewrite each element of `entries` so that its contribution
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          this.counts = new int[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
        }
    
        /** Check if we need to do deduplication and coalescing, and if so, do it. */
        private void maintenance() {
          if (length == elements.length) {
            dedupAndCoalesce(true);
          } else if (forceCopyElements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

     * which is optimal, and <i>not</i> the size of the internal hashtable, which could be much larger
     * than {@code size()}. Furthermore, this structure only depends on a fixed number of arrays; {@code
     * add(x)} operations <i>do not</i> create objects for the garbage collector to deal with, and for
     * every element added, the garbage collector will have to traverse {@code 1.5} references on
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java

      @Benchmark
      void postStrings(int reps) {
        for (int i = 0; i < reps; i++) {
          eventBus.post("hello there");
        }
      }
    
      @Subscribe
      public void handleStrings(String string) {
        // Nothing to do here.
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractIterator.java

     * <p>{@code Iterator} requires its implementations to support querying the end-of-data status
     * without changing the iterator's state, using the {@link #hasNext} method. But many data sources,
     * such as {@link java.io.Reader#read()}, do not expose this information; the only way to discover
     * whether there is any data left is by trying to retrieve it. These types of data sources are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
Back to top