Searched refs:CountingSupplier (Results 1 – 6 of 6) sorted by relevance
94 static class CountingSupplier implements Supplier<Integer>, Serializable { class in SuppliersTest105 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()
385 private static class CountingSupplier class in FunctionsTest399 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()
86 static class CountingSupplier implements Supplier<Integer>, Serializable { class in SuppliersTest97 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize()103 CountingSupplier countingSupplier = new CountingSupplier(); in testMemoize_redudantly()109 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize()
277 private static class CountingSupplier class in FunctionsTest291 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()
557 private abstract static class CountingSupplier<E> class in MultimapsTest570 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 …]
456 private abstract static class CountingSupplier<E> class in MultimapsTest469 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()