Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for reduce (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. guava/src/com/google/common/base/Predicate.java

     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the
     * appropriate primitive specialization such as {@code IntPredicate}) 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/base/Supplier.java

     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Supplier} (or the
     * appropriate primitive specialization such as {@code IntSupplier}) 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
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LongAdder.java

    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
Back to top