Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for Dapper (0.17 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int repeats = 0; repeats < 10000; repeats++) {
          assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
        assertEquals(3327428144502L, BloomFilter.optimalNumOfBits(Integer.MAX_VALUE, Double.MIN_VALUE));
        IllegalArgumentException expected =
            assertThrows(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

       * the result of applying {@code countFunction} to the inputs.
       *
       * <p>If the mapped elements contain duplicates (according to {@link Object#equals}), the first
       * occurrence in encounter order appears in the resulting multiset, with count equal to the sum of
       * the outputs of {@code countFunction.applyAsInt(t)} for each {@code t} mapped to that element.
       *
       * @since 22.0
       */
      public static <T extends @Nullable Object, E>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimap.java

      /**
       * Removes all values associated with the key {@code key}.
       *
       * <p>Once this method returns, {@code key} will not be mapped to any values, so it will not
       * appear in {@link #keySet()}, {@link #asMap()}, or any other views.
       *
       * @return the values that were removed (possibly empty). The returned collection <i>may</i> be
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/Quantiles.java

       * {@code upper}. Assumes that {@code lower <= upper}. Correctly handles infinities (but not
       * {@code NaN}).
       */
      private static double interpolate(double lower, double upper, double remainder, double scale) {
        if (lower == NEGATIVE_INFINITY) {
          if (upper == POSITIVE_INFINITY) {
            // Return NaN when lower == NEGATIVE_INFINITY and upper == POSITIVE_INFINITY:
            return NaN;
          }
    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)
  5. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

    import java.io.File;
    
    /**
     * Android-incompatible tests for {@link FileBackedOutputStream}.
     *
     * @author Chris Nokleberg
     */
    @AndroidIncompatible // Finalization probably just doesn't happen fast enough?
    public class FileBackedOutputStreamAndroidIncompatibleTest extends IoTestCase {
    
      public void testFinalizeDeletesFile() throws Exception {
        byte[] data = newPreFilledByteArray(100);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 08 21:20:23 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

       * inputs, with counts equal to the result of applying {@code countFunction} to the inputs.
       * Elements are added in encounter order.
       *
       * <p>If the mapped elements contain duplicates (according to {@link Object#equals}), the element
       * will be added more than once, with the count summed over all appearances of the element.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 41.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

      /**
       * Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified
       * safe range. If {@code safeMax < safeMin} then no code points are considered safe.
       *
       * <p>If a code point has no mapped replacement then it is checked against the safe range. If it
       * lies outside that, then {@link #escapeUnsafe} is called, otherwise no escaping is performed.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     * #iterator()} method after the first, and whose iterator is always unmodifiable.
     *
     * <p>The {@code Iterable} specification does not make it absolutely clear what should happen on a
     * second invocation, so implementors have made various choices, including:
     *
     * <ul>
     *   <li>returning the same iterator again
     *   <li>throwing an exception of some kind
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     *       continuing to run {@code FooTest} itself. This is exactly what happens with {@code
     *       AndroidIncompatible}. But I'm not sure what would happen if we annotated the {@code
     *       suite()} method with {@code Suppress}. Would {@code FooTest} itself be suppressed, too?
     *   <li>In at least one case, a use of {@code sun.misc.FpUtils}, the test will not even
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

                    getKeyForNullValue(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was mapped to null");
                    }));
        expectReplacement(entry(getKeyForNullValue(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testMergeAbsentNullKey() {
        assertEquals(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.5K bytes
    - Viewed (0)
Back to top