Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for reducer (0.16 sec)

  1. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

            return Streams.findLast(stream);
          }
        },
        REDUCE_LAST {
          @Override
          Object operate(Stream<?> stream) {
            return stream.reduce((a, b) -> b);
          }
        },
        REDUCE_LAST_PARALLEL {
          @Override
          Object operate(Stream<?> stream) {
            return stream.parallel().reduce((a, b) -> b);
          }
        };
    
        abstract Object operate(Stream<?> stream);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 03 19:39:41 GMT 2016
    - 2.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashMap.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 places significantly reduced load on the garbage
     * collector by only using a constant number of internal objects.
     *
     * <p>If there are no removals, then iteration order for the {@link #entrySet}, {@link #keySet}, and
    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)
  4. guava-testlib/src/com/google/common/testing/DummyProxy.java

          return DummyProxy.this;
        }
    
        @Override
        public String toString() {
          return "Dummy proxy for " + interfaceType;
        }
    
        // Since type variables aren't serializable, reduce the type down to raw type before
        // serialization.
        private Object writeReplace() {
          return new DummyHandler(TypeToken.of(interfaceType.getRawType()));
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

          return DummyProxy.this;
        }
    
        @Override
        public String toString() {
          return "Dummy proxy for " + interfaceType;
        }
    
        // Since type variables aren't serializable, reduce the type down to raw type before
        // serialization.
        private Object writeReplace() {
          return new DummyHandler(TypeToken.of(interfaceType.getRawType()));
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Function.java

     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Function} (or the
     * appropriate primitive specialization such as {@code ToIntFunction}) instead whenever possible.
     * Otherwise, at least reduce <i>explicit</i> dependencies on this type by using lambda expressions
     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ArrayListMultimap.java

       */
      @Override
      List<V> createCollection() {
        return new ArrayList<>(expectedValuesPerKey);
      }
    
      /**
       * Reduces the memory used by this {@code ArrayListMultimap}, if feasible.
       *
       * @deprecated For a {@link ListMultimap} that automatically trims to size, use {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Suppliers.java

        }
    
        @Override
        @ParametricNullness
        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FluentIterable.java

     *       hand, is multiple-use, and does implement {@link Iterable}.
     *   <li>Streams offer many features not found here, including {@code min/max}, {@code distinct},
     *       {@code reduce}, {@code sorted}, the very powerful {@code collect}, and built-in support for
     *       parallelizing stream operations.
     *   <li>{@code FluentIterable} contains several features not available on {@code Stream}, which are
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingTest.java

        HashTestUtils.assertInvariants(Hashing.fingerprint2011());
        assertEquals("Hashing.fingerprint2011()", Hashing.fingerprint2011().toString());
      }
    
      @AndroidIncompatible // slow TODO(cpovirk): Maybe just reduce iterations under Android.
      public void testGoodFastHash() {
        for (int i = 1; i < 200; i += 17) {
          HashFunction hasher = Hashing.goodFastHash(i);
          assertTrue(hasher.bits() >= i);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
Back to top