- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for memoizeTest (0.06 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); } public void testMemoize() { memoizeTest(new CountingSupplier()); memoizeTest(new SerializableCountingSupplier()); } private void memoizeTest(CountingSupplier countingSupplier) { Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); checkMemoize(countingSupplier, memoizedSupplier);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 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); } public void testMemoize() { memoizeTest(new CountingSupplier()); memoizeTest(new SerializableCountingSupplier()); } private void memoizeTest(CountingSupplier countingSupplier) { Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); checkMemoize(countingSupplier, memoizedSupplier);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0)