- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for memoizeWithExpiration (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/base/SuppliersTest.java
() -> Suppliers.memoizeWithExpiration(() -> "", 0, MILLISECONDS)); assertThrows( IllegalArgumentException.class, () -> Suppliers.memoizeWithExpiration(() -> "", -1, MILLISECONDS)); } @J2ktIncompatible // Duration @GwtIncompatible // Duration public void testMemoizeWithExpiration_durationNegative() throws InterruptedException { assertThrows(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 17.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
() -> Suppliers.memoizeWithExpiration(() -> "", 0, MILLISECONDS)); assertThrows( IllegalArgumentException.class, () -> Suppliers.memoizeWithExpiration(() -> "", -1, MILLISECONDS)); } @J2ktIncompatible // Duration @GwtIncompatible // Duration public void testMemoizeWithExpiration_durationNegative() throws InterruptedException { assertThrows(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 17.9K bytes - Click Count (0) -
guava/src/com/google/common/base/Suppliers.java
* @throws IllegalArgumentException if {@code duration} is not positive * @since 2.0 */ @SuppressWarnings("GoodTime") // Prefer the Duration overload public static <T extends @Nullable Object> Supplier<T> memoizeWithExpiration( Supplier<T> delegate, long duration, TimeUnit unit) { checkNotNull(delegate); checkArgument(duration > 0, "duration (%s %s) must be > 0", duration, unit);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 16.5K bytes - Click Count (0)