/external/guava/guava-tests/test/com/google/common/collect/ |
D | MultisetsTest.java | 82 Multiset<String> multiset = HashMultiset.create(); in testRetainOccurrencesEmpty() 83 Multiset<String> toRetain = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty() 89 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesIterableEmpty() 96 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesMultisetEmpty() 97 Multiset<String> toRemove = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty() 103 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion() 104 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "b", "c")); in testUnion() 109 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 110 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 115 Multiset<String> ms1 = HashMultiset.create(); in testUnionEmptyNonempty() [all …]
|
D | HashMultisetTest.java | 65 protected Multiset<String> create(String[] elements) { in hashMultisetGenerator() 72 Multiset<String> multiset = HashMultiset.create(); 80 Multiset<String> multiset = HashMultiset.create(50); 88 Multiset<String> multiset = HashMultiset.create(Arrays.asList("foo", "bar", "foo")); 95 Multiset<Multiset<?>> multiset = HashMultiset.create(); 97 Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset); 104 public Multiset<?> member; 106 MultisetHolder(Multiset<?> multiset) { 115 Multiset<MultisetHolder> multiset = HashMultiset.create(); 118 Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
|
D | ImmutableMultisetTest.java | 71 protected Multiset<String> create(String[] elements) { in suite() 86 protected Multiset<String> create(String[] elements) { in suite() 169 Multiset<String> multiset = ImmutableMultiset.of(); in testCreation_noArgs() 174 Multiset<String> multiset = ImmutableMultiset.of("a"); in testCreation_oneElement() 179 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); in testCreation_twoElements() 184 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); in testCreation_threeElements() 189 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); in testCreation_fourElements() 194 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements() 199 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements() 204 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements() [all …]
|
D | ForwardingMultisetTest.java | 20 import com.google.common.collect.Multiset.Entry; 46 private final Multiset<T> backingCollection; 48 StandardImplForwardingMultiset(Multiset<T> backingMultiset) { in StandardImplForwardingMultiset() 53 protected Multiset<T> delegate() { in delegate() 167 protected Multiset<String> create(String[] elements) { in suite() 183 protected Multiset<String> create(String[] elements) { in suite() 200 final Multiset<String> inner = in suite() 204 protected Multiset<String> delegate() { in suite() 340 Multiset.class, in testForwarding() 341 new Function<Multiset, Multiset>() { in testForwarding() [all …]
|
D | ImmutableSortedMultisetTest.java | 24 import com.google.common.collect.Multiset.Entry; 63 protected Multiset<String> create(String[] elements) { in suite() 131 Multiset<String> multiset = ImmutableSortedMultiset.of(); in testCreation_noArgs() 136 Multiset<String> multiset = ImmutableSortedMultiset.of("a"); in testCreation_oneElement() 141 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b"); in testCreation_twoElements() 146 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c"); in testCreation_threeElements() 151 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d"); in testCreation_fourElements() 156 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements() 161 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements() 166 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements() [all …]
|
D | MultisetsCollectionTest.java | 113 protected Multiset<String> create(String[] elements) { in unmodifiableMultisetGenerator() 136 protected Multiset<String> create(String[] elements) { 151 protected Multiset<String> create(String[] elements) { 152 Multiset<String> multiset1 = LinkedHashMultiset.create(); 153 Multiset<String> multiset2 = LinkedHashMultiset.create(); 174 protected Multiset<String> create(String[] elements) { 175 Multiset<String> multiset1 = LinkedHashMultiset.create(); 176 Multiset<String> multiset2 = LinkedHashMultiset.create(); 204 protected Multiset<String> create(String[] elements) { 205 Multiset<String> multiset1 = LinkedHashMultiset.create(); [all …]
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | MultisetsTest.java | 80 Multiset<String> multiset = HashMultiset.create(); in testRetainOccurrencesEmpty() 81 Multiset<String> toRetain = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty() 87 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesIterableEmpty() 94 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesMultisetEmpty() 95 Multiset<String> toRemove = HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty() 101 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion() 102 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "b", "c")); in testUnion() 107 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 108 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets() 113 Multiset<String> ms1 = HashMultiset.create(); in testUnionEmptyNonempty() [all …]
|
D | ImmutableMultisetTest.java | 65 protected Multiset<String> create(String[] elements) { in suite() 148 Multiset<String> multiset = ImmutableMultiset.of(); in testCreation_noArgs() 153 Multiset<String> multiset = ImmutableMultiset.of("a"); in testCreation_oneElement() 158 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); in testCreation_twoElements() 163 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); in testCreation_threeElements() 168 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); in testCreation_fourElements() 173 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements() 178 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements() 183 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements() 189 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_emptyArray() [all …]
|
D | HashMultisetTest.java | 65 protected Multiset<String> create(String[] elements) { in hashMultisetGenerator() 72 Multiset<String> multiset = HashMultiset.create(); 80 Multiset<String> multiset = HashMultiset.create(50); 88 Multiset<String> multiset = HashMultiset.create(Arrays.asList("foo", "bar", "foo")); 95 Multiset<Multiset<?>> multiset = HashMultiset.create(); 97 Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset); 104 public Multiset<?> member; 106 MultisetHolder(Multiset<?> multiset) { 115 Multiset<MultisetHolder> multiset = HashMultiset.create(); 118 Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
|
D | ForwardingMultisetTest.java | 20 import com.google.common.collect.Multiset.Entry; 46 private final Multiset<T> backingCollection; 48 StandardImplForwardingMultiset(Multiset<T> backingMultiset) { in StandardImplForwardingMultiset() 53 protected Multiset<T> delegate() { in delegate() 167 protected Multiset<String> create(String[] elements) { in suite() 183 protected Multiset<String> create(String[] elements) { in suite() 200 final Multiset<String> inner = in suite() 204 protected Multiset<String> delegate() { in suite() 340 Multiset.class, in testForwarding() 341 new Function<Multiset, Multiset>() { in testForwarding() [all …]
|
D | ImmutableSortedMultisetTest.java | 57 protected Multiset<String> create(String[] elements) { in suite() 125 Multiset<String> multiset = ImmutableSortedMultiset.of(); in testCreation_noArgs() 130 Multiset<String> multiset = ImmutableSortedMultiset.of("a"); in testCreation_oneElement() 135 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b"); in testCreation_twoElements() 140 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c"); in testCreation_threeElements() 145 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d"); in testCreation_fourElements() 150 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements() 155 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements() 160 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements() 166 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); in testCreation_emptyArray() [all …]
|
D | MultisetsCollectionTest.java | 113 protected Multiset<String> create(String[] elements) { in unmodifiableMultisetGenerator() 136 protected Multiset<String> create(String[] elements) { 151 protected Multiset<String> create(String[] elements) { 152 Multiset<String> multiset1 = LinkedHashMultiset.create(); 153 Multiset<String> multiset2 = LinkedHashMultiset.create(); 174 protected Multiset<String> create(String[] elements) { 175 Multiset<String> multiset1 = LinkedHashMultiset.create(); 176 Multiset<String> multiset2 = LinkedHashMultiset.create(); 204 protected Multiset<String> create(String[] elements) { 205 Multiset<String> multiset1 = LinkedHashMultiset.create(); [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | Multisets.java | 29 import com.google.common.collect.Multiset.Entry; 69 public static <E> Multiset<E> unmodifiableMultiset(Multiset<? extends E> multiset) { in unmodifiableMultiset() 72 Multiset<E> result = (Multiset<E>) multiset; in unmodifiableMultiset() 85 public static <E> Multiset<E> unmodifiableMultiset(ImmutableMultiset<E> multiset) { in unmodifiableMultiset() 90 final Multiset<? extends E> delegate; 92 UnmodifiableMultiset(Multiset<? extends E> delegate) { in UnmodifiableMultiset() 98 protected Multiset<E> delegate() { in delegate() 100 return (Multiset<E>) delegate; in delegate() 115 @NullableDecl transient Set<Multiset.Entry<E>> entrySet; 119 public Set<Multiset.Entry<E>> entrySet() { in entrySet() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | Multisets.java | 29 import com.google.common.collect.Multiset.Entry; 75 public static <T, E, M extends Multiset<E>> Collector<T, ?, M> toMultiset( in toMultiset() 101 public static <E> Multiset<E> unmodifiableMultiset(Multiset<? extends E> multiset) { in unmodifiableMultiset() 104 Multiset<E> result = (Multiset<E>) multiset; in unmodifiableMultiset() 117 public static <E> Multiset<E> unmodifiableMultiset(ImmutableMultiset<E> multiset) { in unmodifiableMultiset() 122 final Multiset<? extends E> delegate; 124 UnmodifiableMultiset(Multiset<? extends E> delegate) { in UnmodifiableMultiset() 130 protected Multiset<E> delegate() { in delegate() 132 return (Multiset<E>) delegate; in delegate() 147 transient @Nullable Set<Multiset.Entry<E>> entrySet; [all …]
|
D | ImmutableMultiset.java | 56 implements Multiset<E> { 92 (Multiset<E> multiset) -> copyFromEntries(multiset.entrySet())); in toImmutableMultiset() 197 Multiset<? extends E> multiset = in copyOf() 198 (elements instanceof Multiset) in copyOf() 212 Multiset<E> multiset = LinkedHashMultiset.create(); in copyOf() 218 Multiset<E> multiset = LinkedHashMultiset.create(); in copyFromElements() 327 for (Multiset.Entry<E> entry : entrySet()) { 458 final Multiset<E> contents; 468 Builder(Multiset<E> contents) { 543 if (elements instanceof Multiset) { [all …]
|
/external/guava/guava/src/com/google/common/graph/ |
D | DirectedMultiNetworkConnections.java | 25 import com.google.common.collect.Multiset; 62 @LazyInit private transient Reference<Multiset<N>> predecessorsReference; 69 private Multiset<N> predecessorsMultiset() { in predecessorsMultiset() 70 Multiset<N> predecessors = getReference(predecessorsReference); in predecessorsMultiset() 78 @LazyInit private transient Reference<Multiset<N>> successorsReference; 85 private Multiset<N> successorsMultiset() { in successorsMultiset() 86 Multiset<N> successors = getReference(successorsReference); in successorsMultiset() 107 Multiset<N> predecessors = getReference(predecessorsReference); 117 Multiset<N> successors = getReference(successorsReference); 127 Multiset<N> predecessors = getReference(predecessorsReference); [all …]
|
D | UndirectedMultiNetworkConnections.java | 25 import com.google.common.collect.Multiset; 58 @LazyInit private transient Reference<Multiset<N>> adjacentNodesReference; 65 private Multiset<N> adjacentNodesMultiset() { in adjacentNodesMultiset() 66 Multiset<N> adjacentNodes = getReference(adjacentNodesReference); in adjacentNodesMultiset() 95 Multiset<N> adjacentNodes = getReference(adjacentNodesReference); 112 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
|
/external/guava/android/guava/src/com/google/common/graph/ |
D | DirectedMultiNetworkConnections.java | 25 import com.google.common.collect.Multiset; 62 @LazyInit private transient Reference<Multiset<N>> predecessorsReference; 69 private Multiset<N> predecessorsMultiset() { in predecessorsMultiset() 70 Multiset<N> predecessors = getReference(predecessorsReference); in predecessorsMultiset() 78 @LazyInit private transient Reference<Multiset<N>> successorsReference; 85 private Multiset<N> successorsMultiset() { in successorsMultiset() 86 Multiset<N> successors = getReference(successorsReference); in successorsMultiset() 107 Multiset<N> predecessors = getReference(predecessorsReference); 117 Multiset<N> successors = getReference(successorsReference); 127 Multiset<N> predecessors = getReference(predecessorsReference); [all …]
|
D | UndirectedMultiNetworkConnections.java | 25 import com.google.common.collect.Multiset; 58 @LazyInit private transient Reference<Multiset<N>> adjacentNodesReference; 65 private Multiset<N> adjacentNodesMultiset() { in adjacentNodesMultiset() 66 Multiset<N> adjacentNodes = getReference(adjacentNodesReference); in adjacentNodesMultiset() 95 Multiset<N> adjacentNodes = getReference(adjacentNodesReference); 112 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | ConcurrentHashMultisetBenchmark.java | 56 private Multiset<Integer> multiset; 143 Multiset<Integer> get() { 149 Multiset<Integer> get() { 155 Multiset<Integer> get() { 161 abstract Multiset<Integer> get(); 239 for (Multiset.Entry<E> entry : entrySet()) { 449 public Set<Multiset.Entry<E>> entrySet() { 477 public Multiset.Entry<E> next() { 501 Multiset<E> multiset() { 520 private List<Multiset.Entry<E>> snapshot() { [all …]
|
/external/guava/android/guava-tests/benchmark/com/google/common/collect/ |
D | ConcurrentHashMultisetBenchmark.java | 56 private Multiset<Integer> multiset; 143 Multiset<Integer> get() { 149 Multiset<Integer> get() { 155 Multiset<Integer> get() { 161 abstract Multiset<Integer> get(); 239 for (Multiset.Entry<E> entry : entrySet()) { 449 public Set<Multiset.Entry<E>> entrySet() { 477 public Multiset.Entry<E> next() { 501 Multiset<E> multiset() { 520 private List<Multiset.Entry<E>> snapshot() { [all …]
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultisetEntrySetTester.java | 29 import com.google.common.collect.Multiset; 55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); in testEntrySet_iteratorRemovePropagates() 147 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryViewReflectsRemove() 161 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsIteratorRemove() 180 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsClear() 192 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsEntrySetClear() 204 Iterator<Multiset.Entry<E>> entryItr = getMultiset().entrySet().iterator(); in testEntryReflectsEntrySetIteratorRemove() 205 Multiset.Entry<E> entry = entryItr.next(); in testEntryReflectsEntrySetIteratorRemove() 216 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetClear() 228 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetIteratorRemove() [all …]
|
D | MultisetTestSuiteBuilder.java | 22 import com.google.common.collect.Multiset; 23 import com.google.common.collect.Multiset.Entry; 178 return ((Multiset<E>) gen.create(duplicated)).elementSet(); in create() 192 static class EntrySetGenerator<E> implements TestSetGenerator<Multiset.Entry<E>> { 200 public SampleElements<Multiset.Entry<E>> samples() { in samples() 211 public Set<Multiset.Entry<E>> create(Object... entries) { in create() 216 Multiset.Entry<E> entry = (Entry<E>) o; in create() 223 return ((Multiset<E>) gen.create(contents.toArray())).entrySet(); in create() 228 public Multiset.Entry<E>[] createArray(int length) { in createArray() 229 return new Multiset.Entry[length]; in createArray() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultisetEntrySetTester.java | 29 import com.google.common.collect.Multiset; 55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); in testEntrySet_iteratorRemovePropagates() 147 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryViewReflectsRemove() 161 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsIteratorRemove() 180 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsClear() 192 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsEntrySetClear() 204 Iterator<Multiset.Entry<E>> entryItr = getMultiset().entrySet().iterator(); in testEntryReflectsEntrySetIteratorRemove() 205 Multiset.Entry<E> entry = entryItr.next(); in testEntryReflectsEntrySetIteratorRemove() 216 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetClear() 228 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetIteratorRemove() [all …]
|
D | MultisetTestSuiteBuilder.java | 22 import com.google.common.collect.Multiset; 23 import com.google.common.collect.Multiset.Entry; 179 return ((Multiset<E>) gen.create(duplicated)).elementSet(); in create() 193 static class EntrySetGenerator<E> implements TestSetGenerator<Multiset.Entry<E>> { 201 public SampleElements<Multiset.Entry<E>> samples() { in samples() 212 public Set<Multiset.Entry<E>> create(Object... entries) { in create() 217 Multiset.Entry<E> entry = (Entry<E>) o; in create() 224 return ((Multiset<E>) gen.create(contents.toArray())).entrySet(); in create() 229 public Multiset.Entry<E>[] createArray(int length) { in createArray() 230 return new Multiset.Entry[length]; in createArray() [all …]
|