Home
last modified time | relevance | path

Searched refs:Multiset (Results 1 – 25 of 110) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/collect/
DMultisetsTest.java73 Multiset<String> multiset = HashMultiset.create(); in testRetainOccurrencesEmpty()
74 Multiset<String> toRetain = in testRetainOccurrencesEmpty()
81 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesIterableEmpty()
88 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesMultisetEmpty()
89 Multiset<String> toRemove = in testRemoveOccurrencesMultisetEmpty()
96 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion()
97 Multiset<String> ms2 = HashMultiset.create( in testUnion()
103 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
104 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
109 Multiset<String> ms1 = HashMultiset.create(); in testUnionEmptyNonempty()
[all …]
DImmutableMultisetTest.java65 @Override protected Multiset<String> create(String[] elements) { in suite()
134 Multiset<String> multiset = ImmutableMultiset.of(); in testCreation_noArgs()
139 Multiset<String> multiset = ImmutableMultiset.of("a"); in testCreation_oneElement()
144 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); in testCreation_twoElements()
149 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); in testCreation_threeElements()
154 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); in testCreation_fourElements()
159 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements()
165 Multiset<String> multiset = ImmutableMultiset.of( in testCreation_sixElements()
172 Multiset<String> multiset = ImmutableMultiset.of( in testCreation_sevenElements()
181 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_emptyArray()
[all …]
DHashMultisetTest.java64 @Override protected Multiset<String> create(String[] elements) { in hashMultisetGenerator()
71 Multiset<String> multiset = HashMultiset.create();
79 Multiset<String> multiset = HashMultiset.create(50);
87 Multiset<String> multiset
95 Multiset<Multiset<?>> multiset = HashMultiset.create();
97 Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
104 public Multiset<?> member;
105 MultisetHolder(Multiset<?> multiset) {
113 Multiset<MultisetHolder> multiset = HashMultiset.create();
116 Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
DImmutableSortedMultisetTest.java22 import com.google.common.collect.Multiset.Entry;
61 protected Multiset<String> create(String[] elements) { in suite()
121 Multiset<String> multiset = ImmutableSortedMultiset.of(); in testCreation_noArgs()
126 Multiset<String> multiset = ImmutableSortedMultiset.of("a"); in testCreation_oneElement()
131 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b"); in testCreation_twoElements()
136 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c"); in testCreation_threeElements()
141 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d"); in testCreation_fourElements()
146 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements()
151 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f"); in testCreation_sixElements()
156 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f", "g"); in testCreation_sevenElements()
[all …]
DMultisetsCollectionTest.java103 @Override protected Multiset<String> create(String[] elements) { in unmodifiableMultisetGenerator()
124 @Override protected Multiset<String> create(String[] elements) {
138 protected Multiset<String> create(String[] elements) {
139 Multiset<String> multiset1 = LinkedHashMultiset.create();
140 Multiset<String> multiset2 = LinkedHashMultiset.create();
161 @Override protected Multiset<String> create(String[] elements) {
162 Multiset<String> multiset1 = LinkedHashMultiset.create();
163 Multiset<String> multiset2 = LinkedHashMultiset.create();
190 @Override protected Multiset<String> create(String[] elements) {
191 Multiset<String> multiset1 = LinkedHashMultiset.create();
[all …]
DForwardingMultisetTest.java45 private final Multiset<T> backingCollection;
47 StandardImplForwardingMultiset(Multiset<T> backingMultiset) { in StandardImplForwardingMultiset()
51 @Override protected Multiset<T> delegate() { in delegate()
139 protected Multiset<String> forward;
148 @Override protected Multiset<String> create(String[] elements) { in suite()
159 @Override protected Multiset<String> create(String[] elements) { in suite()
176 final Multiset<String> inner = in suite()
179 @Override protected Multiset<String> delegate() { in suite()
275 final Multiset<String> multiset = createProxyInstance(Multiset.class); in setUp()
277 @Override protected Multiset<String> delegate() { in setUp()
[all …]
DBenchmarkHelpers.java212 <E> Multiset<E> create(Multiset<E> contents) { in create()
218 <E> Multiset<E> create(Multiset<E> contents) { in create()
224 <E> Multiset<E> create(Multiset<E> contents) { in create()
230 <E> Multiset<E> create(Multiset<E> contents) { in create()
235 abstract <E> Multiset<E> create(Multiset<E> contents); in create()
241 <E extends Comparable<E>> SortedMultiset<E> create(Multiset<E> contents) { in create()
247 <E extends Comparable<E>> SortedMultiset<E> create(Multiset<E> contents) { in create()
252 abstract <E extends Comparable<E>> SortedMultiset<E> create(Multiset<E> contents); in create()
DEnumMultisetTest.java67 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
84 Multiset<Color> ms = EnumMultiset.create(Color.class);
94 Multiset<Color> ms = EnumMultiset.create(
110 Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
123 Multiset<Color> ms = EnumMultiset.create(Color.class);
132 Multiset<Color> ms = EnumMultiset.create(
138 Multiset<Color> ms = EnumMultiset.create(Color.class);
DLinkedHashMultisetTest.java64 @Override protected Multiset<String> create(String[] elements) { in linkedHashMultisetGenerator()
85 Multiset<String> multiset = LinkedHashMultiset.create();
94 Multiset<String> multiset = LinkedHashMultiset.create(50);
103 Multiset<String> multiset
111 Multiset<String> ms = LinkedHashMultiset.create();
120 Multiset<String> ms = LinkedHashMultiset.create();
DSimpleAbstractMultisetTest.java53 protected Multiset<String> create(String[] elements) { in suite()
54 Multiset<String> ms = new NoRemoveMultiset<String>(); in suite()
68 Multiset<String> multiset = new NoRemoveMultiset<String>() { in testFastAddAllMultiset()
82 Multiset<String> multiset = new NoRemoveMultiset<String>(); in testRemoveUnsupported()
112 return new UnmodifiableIterator<Multiset.Entry<E>>() { in entryIterator()
119 public Multiset.Entry<E> next() { in entryIterator()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultisetsTest.java71 Multiset<String> multiset = HashMultiset.create(); in testRetainOccurrencesEmpty()
72 Multiset<String> toRetain = in testRetainOccurrencesEmpty()
79 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesIterableEmpty()
86 Multiset<String> multiset = HashMultiset.create(); in testRemoveOccurrencesMultisetEmpty()
87 Multiset<String> toRemove = in testRemoveOccurrencesMultisetEmpty()
94 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion()
95 Multiset<String> ms2 = HashMultiset.create( in testUnion()
101 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
102 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
107 Multiset<String> ms1 = HashMultiset.create(); in testUnionEmptyNonempty()
[all …]
DImmutableMultisetTest.java42 Multiset<String> multiset = ImmutableMultiset.of(); in testCreation_noArgs()
47 Multiset<String> multiset = ImmutableMultiset.of("a"); in testCreation_oneElement()
52 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); in testCreation_twoElements()
57 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); in testCreation_threeElements()
62 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); in testCreation_fourElements()
67 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); in testCreation_fiveElements()
73 Multiset<String> multiset = ImmutableMultiset.of( in testCreation_sixElements()
80 Multiset<String> multiset = ImmutableMultiset.of( in testCreation_sevenElements()
89 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_emptyArray()
95 Multiset<String> multiset = ImmutableMultiset.copyOf(array); in testCreation_arrayOfOneElement()
[all …]
DLinkedHashMultisetTest.java40 @Override protected Multiset<String> create(String[] elements) { in linkedHashMultisetGenerator()
61 Multiset<String> multiset = LinkedHashMultiset.create();
70 Multiset<String> multiset = LinkedHashMultiset.create(50);
79 Multiset<String> multiset
87 Multiset<String> ms = LinkedHashMultiset.create();
96 Multiset<String> ms = LinkedHashMultiset.create();
DEnumMultisetTest.java41 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
58 Multiset<Color> ms = EnumMultiset.create(Color.class);
68 Multiset<Color> ms = EnumMultiset.create(
84 Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
97 Multiset<Color> ms = EnumMultiset.create(Color.class);
105 Multiset<Color> ms = EnumMultiset.create(Color.class);
DHashMultisetTest.java39 @Override protected Multiset<String> create(String[] elements) { in hashMultisetGenerator()
46 Multiset<String> multiset = HashMultiset.create();
54 Multiset<String> multiset = HashMultiset.create(50);
62 Multiset<String> multiset
/external/guava/guava/src/com/google/common/collect/
DMultisets.java29 import com.google.common.collect.Multiset.Entry;
72 public static <E> Multiset<E> unmodifiableMultiset( in unmodifiableMultiset()
73 Multiset<? extends E> multiset) { in unmodifiableMultiset()
78 Multiset<E> result = (Multiset<E>) multiset; in unmodifiableMultiset()
90 @Deprecated public static <E> Multiset<E> unmodifiableMultiset( in unmodifiableMultiset()
97 final Multiset<? extends E> delegate;
99 UnmodifiableMultiset(Multiset<? extends E> delegate) { in UnmodifiableMultiset()
104 @Override protected Multiset<E> delegate() { in delegate()
106 return (Multiset<E>) delegate; in delegate()
121 transient Set<Multiset.Entry<E>> entrySet;
[all …]
DImmutableMultiset.java23 import com.google.common.collect.Multiset.Entry;
53 implements Multiset<E> {
182 Multiset<? extends E> multiset = (elements instanceof Multiset) in copyOf()
194 Multiset<? extends E> multiset) { in copyOfInternal()
231 Multiset<E> multiset = LinkedHashMultiset.create(); in copyOf()
323 for (Multiset.Entry<E> entry : entrySet()) { in copyIntoArray()
431 SerializedForm(Multiset<?> multiset) {
488 final Multiset<E> contents;
498 Builder(Multiset<E> contents) {
570 if (elements instanceof Multiset) {
[all …]
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java54 private Multiset<Integer> multiset;
135 @Override Multiset<Integer> get() {
140 @Override Multiset<Integer> get() {
145 @Override Multiset<Integer> get() {
151 abstract Multiset<Integer> get();
227 for (Multiset.Entry<E> entry : entrySet()) {
433 @Override public Set<Multiset.Entry<E>> entrySet() {
457 @Override public Multiset.Entry<E> next() {
474 @Override Multiset<E> multiset() {
491 private List<Multiset.Entry<E>> snapshot() {
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetTestSuiteBuilder.java21 import com.google.common.collect.Multiset;
22 import com.google.common.collect.Multiset.Entry;
183 return ((Multiset<E>) gen.create(duplicated)).elementSet(); in create()
197 static class EntrySetGenerator<E> implements TestSetGenerator<Multiset.Entry<E>> {
205 public SampleElements<Multiset.Entry<E>> samples() { in samples()
207 return new SampleElements<Multiset.Entry<E>>( in samples()
216 public Set<Multiset.Entry<E>> create(Object... entries) { in create()
221 Multiset.Entry<E> entry = (Entry<E>) o; in create()
228 return ((Multiset<E>) gen.create(contents.toArray())).entrySet(); in create()
233 public Multiset.Entry<E>[] createArray(int length) { in createArray()
[all …]
DMultisetEntrySetTester.java29 import com.google.common.collect.Multiset;
55 Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); in testEntrySet_iteratorRemovePropagates()
149 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryViewReflectsRemove()
163 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsIteratorRemove()
182 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsClear()
194 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsEntrySetClear()
206 Iterator<Multiset.Entry<E>> entryItr = getMultiset().entrySet().iterator(); in testEntryReflectsEntrySetIteratorRemove()
207 Multiset.Entry<E> entry = entryItr.next(); in testEntryReflectsEntrySetIteratorRemove()
218 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetClear()
230 Multiset.Entry<E> entry = Iterables.getOnlyElement(getMultiset().entrySet()); in testEntryReflectsElementSetIteratorRemove()
[all …]
DAbstractMultisetTester.java20 import com.google.common.collect.Multiset;
30 protected final Multiset<E> getMultiset() { in getMultiset()
31 return (Multiset<E>) collection; in getMultiset()
/external/cldr/tools/java/org/unicode/cldr/util/
DRegexLogger.java19 import com.google.common.collect.Multiset;
281 … public void process(PatternStringWithBoolean item, Multiset<PatternStringWithBoolean> countSet) { in process()
300 … public void process(PatternStringWithBoolean item, Multiset<PatternStringWithBoolean> countSet) { in process()
315 final Multiset<PatternStringWithBoolean> matchedFindSet;
316 final Multiset<PatternStringWithBoolean> failedFindSet;
317 final Multiset<PatternStringWithBoolean> matchedMatchSet;
318 final Multiset<PatternStringWithBoolean> failedMatchSet;
321 …public CountSets(Multiset<PatternStringWithBoolean> matchedFindSet, Multiset<PatternStringWithBool… in CountSets()
322Multiset<PatternStringWithBoolean> matchedMatchSet, Multiset<PatternStringWithBoolean> failedMatch… in CountSets()
551 private final Multiset<PatternStringWithBoolean> matchedFindSet = TreeMultiset.create();
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAllocationStats.java26 import com.google.common.collect.Multiset;
27 import com.google.common.collect.Multiset.Entry;
61 Multiset<Allocation> allocations) { in AllocationStats()
182 private final Multiset<Allocation> additions;
183 private final Multiset<Allocation> removals;
189 Multiset<Allocation> additions, in Delta()
190 Multiset<Allocation> removals) { in Delta()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMultiset.java22 import com.google.common.collect.Multiset.Entry;
52 implements Multiset<E> {
181 Multiset<? extends E> multiset = (elements instanceof Multiset) in copyOf()
193 Multiset<? extends E> multiset) { in copyOfInternal()
230 Multiset<E> multiset = LinkedHashMultiset.create(); in copyOf()
420 SerializedForm(Multiset<?> multiset) {
477 final Multiset<E> contents;
487 Builder(Multiset<E> contents) {
559 if (elements instanceof Multiset) {
560 Multiset<? extends E> multiset = Multisets.cast(elements);
/external/guava/guava-gwt/src/com/google/common/collect/
DMultiset_CustomFieldSerializerBase.java33 static Multiset<Object> populate( in populate()
34 SerializationStreamReader reader, Multiset<Object> multiset) in populate()
45 static void serialize(SerializationStreamWriter writer, Multiset<?> instance) in serialize()
49 for (Multiset.Entry<?> entry : instance.entrySet()) { in serialize()

12345