- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for memoization (0.04 sec)
-
android/guava-tests/test/com/google/common/base/SuppliersTest.java
// it still should only have executed once due to memoization assertEquals(1, countingSupplier.calls); Thread.sleep(150); assertEquals(20, (int) memoizedSupplier.get()); // old value expired assertEquals(2, countingSupplier.calls); assertEquals(20, (int) memoizedSupplier.get()); // it still should only have executed twice due to memoization assertEquals(2, countingSupplier.calls); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
// it still should only have executed once due to memoization assertEquals(1, countingSupplier.calls); Thread.sleep(150); assertEquals(20, (int) memoizedSupplier.get()); // old value expired assertEquals(2, countingSupplier.calls); assertEquals(20, (int) memoizedSupplier.get()); // it still should only have executed twice due to memoization assertEquals(2, countingSupplier.calls); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 17.9K bytes - Viewed (0)