- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for MemoizingSupplier (0.08 seconds)
-
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).Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.9K bytes - Click Count (0) -
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 {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0) -
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 {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0)