Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 267 for Hummer (0.19 sec)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

        Optional<Integer> optionalInt = getSomeOptionalInt();
        // Number value = optionalInt.or(0.5); // error
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
        Optional<? extends Number> first = numbers.first();
        // Number value = first.or(0.5); // error
      }
    
      @SuppressWarnings("unused") // compilation test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
    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)
  3. android/guava/src/com/google/common/collect/EnumHashBiMap.java

        stream.defaultReadObject();
        keyTypeOrObjectUnderJ2cl = (Class<K>) requireNonNull(stream.readObject());
        /*
         * TODO: cpovirk - Pre-size the HashMap based on the number of enum values? (But *not* based on
         * the number of entries in the map, as that makes it easy for hostile inputs to trigger lots of
         * allocation—not that any program should be deserializing hostile inputs to begin with!)
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/Utf8Test.java

        // Anything not assigned was the default 0.
        return expected;
      }
    
      /**
       * Helper to run the loop to test all the permutations for the number of bytes specified.
       *
       * @param numBytes the number of bytes in the byte array
       * @param expectedCount the expected number of roundtrippable permutations
       */
      @GwtIncompatible // java.nio.charset.Charset
      private static void testBytes(int numBytes, long expectedCount) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Comparators.java

       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
       * <p>The recommended solution for finding the {@code minimum} of some values depends on the type
       * of your data and the number of elements you have. Read more in the Guava User Guide article on
       * <a href="https://github.com/google/guava/wiki/CollectionUtilitiesExplained#comparators">{@code
       * Comparators}</a>.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Monitor.java

      }
    
      /**
       * Returns the number of times the current thread has entered this monitor in excess of the number
       * of times it has left. Returns 0 if the current thread is not occupying this monitor.
       */
      public int getOccupiedDepth() {
        return lock.getHoldCount();
      }
    
      /**
       * Returns an estimate of the number of threads waiting to enter this monitor. The value is only
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

       * Tests that compilation will work when applying explicit types.
       */
      @SuppressWarnings("unused") // compilation test
      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/ConverterTest.java

              public Integer apply(String input) {
                return Integer.parseInt(input);
              }
            };
        Function<Object, String> backward = toStringFunction();
    
        Converter<String, Number> converter = Converter.<String, Number>from(forward, backward);
    
        assertNull(converter.convert(null));
        assertNull(converter.reverse().convert(null));
    
        assertEquals((Integer) 5, converter.convert("5"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <ul>
       *   <li>You want to assign the same fraction of inputs to each bucket.
       *   <li>When you reduce the number of buckets, you can accept that the most recently added
       *       buckets will be removed first. More concretely, if you are dividing traffic among tasks,
       *       you can decrease the number of tasks from 15 and 10, killing off the final 5 tasks, and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     *
     * <p>As compared with {@link java.util.LinkedHashMap}, this structure places significantly reduced
     * load on the garbage collector by only using a constant number of internal objects.
     *
     * <p>This class should not be assumed to be universally superior to {@code
     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top