Home
last modified time | relevance | path

Searched refs:CountingSupplier (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java93 static class CountingSupplier implements Supplier<Integer>, Serializable { class in SuppliersTest
104 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize()
110 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize_redudantly()
117 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeSerialized()
126 CountingSupplier countingCopy = (CountingSupplier) in testMemoizeSerialized()
132 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize()
171 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeWithExpiration()
182 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeWithExpirationSerialized()
192 CountingSupplier countingCopy = (CountingSupplier) in testMemoizeWithExpirationSerialized()
199 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) in checkExpiration()
DFunctionsTest.java384 private static class CountingSupplier class in FunctionsTest
398 if (obj instanceof CountingSupplier) { in equals()
399 return this.value == ((CountingSupplier) obj).value; in equals()
411 Supplier<Integer> supplier = new CountingSupplier(); in testForSupplier()
419 .addEqualityGroup(Functions.forSupplier(new CountingSupplier())) in testForSupplier()
427 checkCanReserialize(Functions.forSupplier(new CountingSupplier())); in testForSupplierSerializable()
/external/guava/guava-tests/test/com/google/common/collect/
DMultimapsTest.java532 private static abstract class CountingSupplier<E> class in MultimapsTest
545 private static class QueueSupplier extends CountingSupplier<Queue<Integer>> {
554 CountingSupplier<Queue<Integer>> factory = new QueueSupplier(); in testNewMultimap()
578 CountingSupplier<Queue<Integer>> factory = new QueueSupplier(); in testNewMultimapSerialization()
587 CountingSupplier<LinkedList<Integer>> {
595 CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); in testNewListMultimap()
613 CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); in testNewListMultimapSerialization()
621 private static class SetSupplier extends CountingSupplier<HashSet<Integer>> {
629 CountingSupplier<HashSet<Integer>> factory = new SetSupplier(); in testNewSetMultimap()
643 CountingSupplier<HashSet<Integer>> factory = new SetSupplier(); in testNewSetMultimapSerialization()
[all …]