Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MemoizingSupplier (0.08 sec)

  1. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

         * depend on Logger to not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
         * One thing to *avoid* is a change to make each Logger user use memoizingSupplier directly:
         * That may introduce an extra class for each lambda (currently a dozen).
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Suppliers.java

            || delegate instanceof MemoizingSupplier) {
          return delegate;
        }
        return delegate instanceof Serializable
            ? new MemoizingSupplier<T>(delegate)
            : new NonSerializableMemoizingSupplier<T>(delegate);
      }
    
      @VisibleForTesting
      static final class MemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

            || delegate instanceof MemoizingSupplier) {
          return delegate;
        }
        return delegate instanceof Serializable
            ? new MemoizingSupplier<T>(delegate)
            : new NonSerializableMemoizingSupplier<T>(delegate);
      }
    
      @VisibleForTesting
      static final class MemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        Supplier<Integer> copy = reserialize(memoizedSupplier);
        Object unused2 = memoizedSupplier.get();
    
        CountingSupplier countingCopy =
            (CountingSupplier) ((Suppliers.MemoizingSupplier<Integer>) copy).delegate;
        checkMemoize(countingCopy, copy);
      }
    
      public void testCompose() {
        Supplier<Integer> fiveSupplier =
            new Supplier<Integer>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top