Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 571 for have (3.78 sec)

  1. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        }
        return dummy;
      }
    
      /**
       * Similar to the above, but keeps a boolean flag rather than checking for the string accumulated
       * so far being empty. As a result, it does not have the above-mentioned bug.
       */
      @Benchmark
      int booleanIfFirst(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          boolean append = false;
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

              public void onFailure(Throwable t) {
                failureCalls[0]++;
              }
            };
        addCallback(future, callback, directExecutor());
        try {
          future.set(result);
          fail("Should have thrown");
        } catch (TestError e) {
          assertSame(error, e);
        }
        assertEquals(result, future.get());
        assertThat(successCalls[0]).isEqualTo(1);
        assertThat(failureCalls[0]).isEqualTo(0);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        } else {
          prevInInsertionOrder[next] = prev;
        }
      }
    
      /**
       * Updates the K-to-V hash table to include the entry at the specified index, which is assumed to
       * have not yet been added.
       */
      private void insertIntoTableKToV(int entry, int keyHash) {
        checkArgument(entry != ABSENT);
        int keyBucket = bucket(keyHash);
        nextInBucketKToV[entry] = hashTableKToV[keyBucket];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      private void assertCleanup(
          LoadingCache<Integer, String> cache,
          CountingRemovalListener<Integer, String> removalListener) {
    
        // initialSize will most likely be 2, but it's possible for the GC to have already run, so we'll
        // observe a size of 1
        long initialSize = cache.size();
        assertTrue(initialSize == 1 || initialSize == 2);
    
        // wait up to 5s
        byte[] filler = new byte[1024];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/LongMath.java

            /*
             * We wish to test whether or not x <= (sqrtFloor + 0.5)^2 = halfSquare + 0.25. Since both x
             * and halfSquare are integers, this is equivalent to testing whether or not x <=
             * halfSquare. (We have to deal with overflow, though.)
             *
             * If we treat halfSquare as an unsigned long, we know that
             *            sqrtFloor^2 <= x < (sqrtFloor + 1)^2
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

        }
      }
    
      // Following Javadoc copied from Multimap and SortedSetMultimap.
    
      /**
       * Returns a collection view of all values associated with a key. If no mappings in the multimap
       * have the provided key, an empty collection is returned.
       *
       * <p>Changes to the returned collection will update the underlying multimap, and vice versa.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
                      public Map<TypeToken, Object> create(Object... elements) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

            .suppressing(suppressForLinkedBlockingQueue())
            .createTestSuite();
      }
    
      // Not specifying KNOWN_ORDER for PriorityQueue and PriorityBlockingQueue
      // even though they do have it, because our tests interpret KNOWN_ORDER to
      // also mean that the iterator returns the head element first, which those
      // don't.
    
      public Test testsForPriorityBlockingQueue() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

        }
      }
    
      // Following Javadoc copied from Multimap and SortedSetMultimap.
    
      /**
       * Returns a collection view of all values associated with a key. If no mappings in the multimap
       * have the provided key, an empty collection is returned.
       *
       * <p>Changes to the returned collection will update the underlying multimap, and vice versa.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/Quantiles.java

     *
     * <p>To compute quartiles, use {@link #quartiles()} instead of {@link #percentiles()}. To compute
     * arbitrary q-quantiles, use {@link #scale scale(q)}.
     *
     * <p>These examples all take a copy of your dataset. If you have a double array, you are okay with
     * it being arbitrarily reordered, and you want to avoid that copy, you can use {@code
     * computeInPlace} instead of {@code compute}.
     *
     * <h3>Definition and notes on interpolation</h3>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
Back to top