Searched refs:countingSupplier (Results 1 – 1 of 1) sorted by relevance
104 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize() local105 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize()106 checkMemoize(countingSupplier, memoizedSupplier); in testMemoize()110 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize_redudantly() local111 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize_redudantly()117 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeSerialized() local118 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeSerialized()119 checkMemoize(countingSupplier, memoizedSupplier); in testMemoizeSerialized()132 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize() argument134 assertEquals(0, countingSupplier.calls); in checkMemoize()[all …]