Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java94 static class CountingSupplier implements Supplier<Integer>, Serializable { class in SuppliersTest
105 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize()
111 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize_redudantly()
118 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeSerialized()
127 CountingSupplier countingCopy = (CountingSupplier) in testMemoizeSerialized()
133 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize()
172 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeWithExpiration()
183 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoizeWithExpirationSerialized()
193 CountingSupplier countingCopy = (CountingSupplier) in testMemoizeWithExpirationSerialized()
200 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) in checkExpiration()
DFunctionsTest.java385 private static class CountingSupplier class in FunctionsTest
399 if (obj instanceof CountingSupplier) { in equals()
400 return this.value == ((CountingSupplier) obj).value; in equals()
412 Supplier<Integer> supplier = new CountingSupplier(); in testForSupplier()
420 .addEqualityGroup(Functions.forSupplier(new CountingSupplier())) in testForSupplier()
428 checkCanReserialize(Functions.forSupplier(new CountingSupplier())); in testForSupplierSerializable()
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DSuppliersTest.java86 static class CountingSupplier implements Supplier<Integer>, Serializable { class in SuppliersTest
97 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize()
103 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize_redudantly()
109 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize()
DFunctionsTest.java277 private static class CountingSupplier class in FunctionsTest
291 if (obj instanceof CountingSupplier) { in equals()
292 return this.value == ((CountingSupplier) obj).value; in equals()
304 Supplier<Integer> supplier = new CountingSupplier(); in testForSupplier()
312 .addEqualityGroup(Functions.forSupplier(new CountingSupplier())) in testForSupplier()
/external/guava/guava-tests/test/com/google/common/collect/
DMultimapsTest.java557 private abstract static class CountingSupplier<E> class in MultimapsTest
570 private static class QueueSupplier extends CountingSupplier<Queue<Integer>> {
578 CountingSupplier<Set<Integer>> factory = new SetSupplier() { in testNewMultimapWithCollectionRejectingNegativeElements()
625 CountingSupplier<Queue<Integer>> factory = new QueueSupplier(); in testNewMultimap()
649 CountingSupplier<Queue<Integer>> factory = new QueueSupplier(); in testNewMultimapSerialization()
658 CountingSupplier<LinkedList<Integer>> {
666 CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); in testNewListMultimap()
684 CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); in testNewListMultimapSerialization()
692 private static class SetSupplier extends CountingSupplier<Set<Integer>> {
700 CountingSupplier<Set<Integer>> factory = new SetSupplier(); in testNewSetMultimap()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultimapsTest.java456 private abstract static class CountingSupplier<E> class in MultimapsTest
469 private static class QueueSupplier extends CountingSupplier<Queue<Integer>> {
477 CountingSupplier<Set<Integer>> factory = new SetSupplier() { in testNewMultimapWithCollectionRejectingNegativeElements()
524 CountingSupplier<Queue<Integer>> factory = new QueueSupplier(); in testNewMultimap()
547 CountingSupplier<LinkedList<Integer>> {
555 CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); in testNewListMultimap()
571 private static class SetSupplier extends CountingSupplier<Set<Integer>> {
579 CountingSupplier<Set<Integer>> factory = new SetSupplier(); in testNewSetMultimap()
592 CountingSupplier<TreeSet<Integer>> {
600 CountingSupplier<TreeSet<Integer>> factory = new SortedSetSupplier(); in testNewSortedSetMultimap()