Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 401 for Numbers (0.17 sec)

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

                BloomFilterStrategies.MURMUR128_MITZ_32);
    
        // Insert "numInsertions" even numbers into the BF.
        for (int i = 0; i < numInsertions * 2; i += 2) {
          bf.put(Integer.toString(i));
        }
        assertApproximateElementCountGuess(bf, numInsertions);
    
        // Assert that the BF "might" have all of the even numbers.
        for (int i = 0; i < numInsertions * 2; i += 2) {
          assertTrue(bf.mightContain(Integer.toString(i)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Optional.java

       * Optional<Number>} (where {@code Number} is the desired output type) solves the problem:
       *
       * <pre>{@code
       * Optional<Number> optionalInt = (Optional) getSomeOptionalInt();
       * Number value = optionalInt.or(0.5); // fine
       *
       * FluentIterable<? extends Number> numbers = getSomeNumbers();
       * Optional<Number> first = (Optional) numbers.first();
       * Number value = first.or(0.5); // fine
       * }</pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals(42, queue.maximumSize);
        checkNatural(queue);
      }
    
      private static final ImmutableList<Integer> NUMBERS = ImmutableList.of(4, 8, 15, 16, 23, 42);
    
      public void testCreation_withContents() {
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create(NUMBERS);
        assertEquals(6, queue.size());
        assertEquals(11, queue.capacity());
        checkUnbounded(queue);
        checkNatural(queue);
    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)
  4. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEqualityGroup(isNull)
            .addEqualityGroup(Equivalence.identity().equivalentTo("1"))
            .testEquals();
      }
    
      /*
       * We use large numbers to avoid the integer cache. Normally, we'd accomplish that merely by using
       * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer`
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Defaults.java

      private Defaults() {}
    
      private static final Double DOUBLE_DEFAULT = 0d;
      private static final Float FLOAT_DEFAULT = 0f;
    
      /**
       * Returns the default value of {@code type} as defined by JLS --- {@code 0} for numbers, {@code
       * false} for {@code boolean} and {@code '\0'} for {@code char}. For non-primitive types and
       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

          }
        }
      }
    
      /**
       * Used to delay string formatting until actually required, as it otherwise shows up in the test
       * execution profile when running an extremely large numbers of tests.
       */
      private String reportContext(List<E> expected) {
        return Platform.format(
            "expected collection %s; actual collection %s", expected, this.collection);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/HashMultimap.java

       * keys and values without rehashing.
       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys(expectedKeys).hashSetValues(expectedValuesPerKey).build()}.
       *
       * @param expectedKeys the expected number of distinct keys
       * @param expectedValuesPerKey the expected average number of values per key
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/HostAndPort.java

       *
       * @param host the host string to parse. Must not contain a port number.
       * @param port a port number from [0..65535]
       * @return if parsing was successful, a populated HostAndPort object.
       * @throws IllegalArgumentException if {@code host} contains a port number, or {@code port} is out
       *     of range.
       */
      public static HostAndPort fromParts(String host, int port) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Cut.java

    import javax.annotation.CheckForNull;
    
    /**
     * Implementation detail for the internal structure of {@link Range} instances. Represents a unique
     * way of "cutting" a "number line" (actually of instances of type {@code C}, not necessarily
     * "numbers") into two sections; this can be done below a certain value, above a certain value,
     * below all values or above all values. With this object defined in this way, an interval can
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top