Home
last modified time | relevance | path

Searched refs:Multimap (Results 1 – 25 of 119) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/collect/
DFilteredMultimapTest.java43 protected Multimap<String, Integer> create() { in create()
44 Multimap<String, Integer> unfiltered = HashMultimap.create(); in create()
58 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterKeys()
61 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); in testFilterKeys()
74 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterValues()
77 Multimap<String, Integer> filtered = Multimaps.filterValues(unfiltered, VALUE_PREDICATE); in testFilterValues()
84 Multimap<String, Integer> unfiltered = HashMultimap.create(); in testFilterFiltered()
88 Multimap<String, Integer> keyFiltered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); in testFilterFiltered()
89 Multimap<String, Integer> filtered = Multimaps.filterValues(keyFiltered, VALUE_PREDICATE); in testFilterFiltered()
DLinkedHashMultimapTest.java101 private Multimap<String, Integer> initializeMultimap5() { in initializeMultimap5()
102 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in initializeMultimap5()
112 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in testToString()
123 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingReadOnly()
128 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingUnmodifiable()
133 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingSynchronized()
139 Multimap<String, Integer> multimap = initializeMultimap5(); in testSerializationOrdering()
140 Multimap<String, Integer> copy in testSerializationOrdering()
147 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in testSerializationOrderingKeysAndEntries()
162 private void assertOrderingReadOnly(Multimap<String, Integer> multimap) { in assertOrderingReadOnly()
[all …]
DImmutableListMultimapTest.java125 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable()
137 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs()
144 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
149 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
157 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimap()
188 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
194 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
203 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimapWithDuplicates()
210 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullKey()
233 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullValue()
[all …]
DMultimapsTest.java109 Multimap<String, Integer> mod = HashMultimap.create(); in testUnmodifiableMultimapShortCircuit()
110 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapShortCircuit()
115 assertSame(immutable, Multimaps.unmodifiableMultimap((Multimap<String, Integer>) immutable)); in testUnmodifiableMultimapShortCircuit()
126 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableArrayListMultimap()
158 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableHashMultimap()
171 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableTreeMultimap()
184 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableSynchronizedArrayListMultimap()
198 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableSynchronizedHashMultimap()
220 Multimap<String, Integer> unmodifiable = in testSerializingUnmodifiableSynchronizedTreeMultimap()
227 Multimap<String, Integer> mod = HashMultimap.create(); in testUnmodifiableMultimapIsView()
[all …]
DImmutableSetMultimapTest.java123 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable()
135 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs()
142 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
147 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
155 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimap()
182 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
196 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullKey()
219 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullValue()
344 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); in testCopyOf()
362 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); in testCopyOfEmpty()
[all …]
DLinkedListMultimapTest.java98 Multimap<String, Integer> multimap = create(); in testGetRandomAccess()
110 Multimap<String, Integer> multimap = create(); in testRemoveAllRandomAccess()
122 Multimap<String, Integer> multimap = create(); in testReplaceValuesRandomAccess()
132 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testCreateFromMultimap()
185 Multimap<String, Integer> map = create(); in testLinkedPutInOrder()
194 Multimap<String, Integer> map = create(); in testLinkedPutOutOfOrder()
203 Multimap<String, Integer> src = create(); in testLinkedPutAllMultimap()
207 Multimap<String, Integer> dst = create(); in testLinkedPutAllMultimap()
214 Multimap<String, Integer> map = create(); in testLinkedReplaceValues()
242 Multimap<String, Integer> map = create(); in testLinkedKeySet()
[all …]
DMapConstraintsTest.java212 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testConstrainedMultimapLegal()
213 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapLegal()
318 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testConstrainedMultimapIllegal()
319 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapIllegal()
428 Multimap<String, Integer> multimap = Multimaps.newMultimap( in testConstrainedMultimapQueue()
430 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapQueue()
485 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testMultimapAsMapEntriesToArray()
486 Multimap<String, Integer> constrained in testMultimapAsMapEntriesToArray()
505 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testMultimapAsMapValuesToArray()
506 Multimap<String, Integer> constrained in testMultimapAsMapValuesToArray()
[all …]
DMultimapsFilterEntriesAsMapTest.java45 private Multimap<String, Integer> createMultimap() { in createMultimap()
46 Multimap<String, Integer> unfiltered = HashMultimap.create(); in createMultimap()
54 Multimap<String, Integer> multimap = createMultimap(); in makeEmptyMap()
59 Multimap<String, Integer> multimap = createMultimap(); in makePopulatedMap()
DMultimapsCollectionTest.java100 Multimap<Integer, String> multimap, String[] elements) { in populateMultimapForGet()
108 Multimap<String, Integer> multimap, String[] elements) { in populateMultimapForKeySet()
116 Multimap<Integer, String> multimap, String[] elements) { in populateMultimapForValues()
123 Multimap<String, Integer> multimap, String[] elements) { in populateMultimapForKeys()
162 @Override protected Multimap<K, V> delegate() { in delegate()
190 Multimap<String, Integer> multimap = createMultimap(); in create()
199 abstract Multimap<String, Integer> createMultimap(); in createMultimap()
314 static abstract class TransformedMultimapGenerator<M extends Multimap<String, String>>
354 Multimap<String, String> multimap = ArrayListMultimap.create(); in create()
363 abstract M transform(Multimap<String, String> multimap); in transform()
[all …]
DForwardingMultimapTest.java29 Multimap<String, Boolean> forward;
39 final Multimap<String, Boolean> multimap = in setUp()
40 createProxyInstance(Multimap.class); in setUp()
42 @Override protected Multimap<String, Boolean> delegate() { in setUp()
DBenchmarkHelpers.java84 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { in create()
90 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { in create()
96 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { in create()
101 abstract <K, V> ListMultimap<K, V> create(Multimap<K, V> contents); in create()
108 Multimap<K, V> contents) { in create()
115 Multimap<K, V> contents) { in create()
122 Multimap<K, V> contents) { in create()
129 Multimap<K, V> contents) { in create()
135 Multimap<K, V> contents); in create()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DLinkedHashMultimapTest.java54 private Multimap<String, Integer> initializeMultimap5() { in initializeMultimap5()
55 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in initializeMultimap5()
65 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in testToString()
76 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingReadOnly()
81 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingUnmodifiable()
86 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingSynchronized()
90 private void assertOrderingReadOnly(Multimap<String, Integer> multimap) { in assertOrderingReadOnly()
120 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingUpdates()
135 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in testToStringNullExact()
158 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); in testPutMultimapOrdered()
[all …]
DImmutableListMultimapTest.java101 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable()
113 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs()
120 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
125 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
133 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimap()
164 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
170 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
179 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimapWithDuplicates()
186 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullKey()
209 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullValue()
[all …]
DLinkedListMultimapTest.java51 Multimap<String, Integer> multimap = create(); in testGetRandomAccess()
63 Multimap<String, Integer> multimap = create(); in testRemoveAllRandomAccess()
75 Multimap<String, Integer> multimap = create(); in testReplaceValuesRandomAccess()
85 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testCreateFromMultimap()
138 Multimap<String, Integer> map = create(); in testLinkedPutInOrder()
147 Multimap<String, Integer> map = create(); in testLinkedPutOutOfOrder()
156 Multimap<String, Integer> src = create(); in testLinkedPutAllMultimap()
160 Multimap<String, Integer> dst = create(); in testLinkedPutAllMultimap()
167 Multimap<String, Integer> map = create(); in testLinkedReplaceValues()
195 Multimap<String, Integer> map = create(); in testLinkedKeySet()
[all …]
DImmutableSetMultimapTest.java90 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable()
102 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs()
109 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
114 Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); in testBuilderPutAllMultimap()
122 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllMultimap()
149 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutAllMultimapWithDuplicates()
163 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullKey()
186 Multimap<String, Integer> toPut = LinkedListMultimap.create(); in testBuilderPutNullValue()
311 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); in testCopyOf()
329 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); in testCopyOfEmpty()
[all …]
DMapConstraintsTest.java210 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testConstrainedMultimapLegal()
211 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapLegal()
316 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testConstrainedMultimapIllegal()
317 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapIllegal()
426 Multimap<String, Integer> multimap = Multimaps.newMultimap( in testConstrainedMultimapQueue()
428 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( in testConstrainedMultimapQueue()
483 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testMultimapAsMapEntriesToArray()
484 Multimap<String, Integer> constrained in testMultimapAsMapEntriesToArray()
503 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testMultimapAsMapValuesToArray()
504 Multimap<String, Integer> constrained in testMultimapAsMapValuesToArray()
[all …]
DMultimapsTest.java105 Multimap<String, Integer> mod = HashMultimap.create(); in testUnmodifiableMultimapShortCircuit()
106 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapShortCircuit()
111 assertSame(immutable, Multimaps.unmodifiableMultimap((Multimap<String, Integer>) immutable)); in testUnmodifiableMultimapShortCircuit()
135 Multimap<String, Integer> mod = HashMultimap.create(); in testUnmodifiableMultimapIsView()
136 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapIsView()
145 Multimap<String, Integer> mod = HashMultimap.create(); in testUnmodifiableMultimapEntries()
146 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapEntries()
174 Multimap<String, Integer> multimap, boolean permitsDuplicates) { in checkUnmodifiableMultimap()
184 Multimap<String, Integer> multimap, boolean permitsDuplicates, in checkUnmodifiableMultimap()
186 Multimap<String, Integer> unmodifiable = in checkUnmodifiableMultimap()
[all …]
DArrayListMultimapTest.java46 Multimap<String, Integer> multimap = create(); in testGetRandomAccess()
57 Multimap<String, Integer> multimap = create(); in testRemoveAllRandomAccess()
68 Multimap<String, Integer> multimap = create(); in testReplaceValuesRandomAccess()
100 Multimap<String, Integer> multimap = create(); in testCreateFromMultimap()
134 Multimap<String, Integer> original = HashMultimap.create(); in testCreateFromHashMultimap()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutAllMultimapTester.java25 import com.google.common.collect.Multimap;
38 extends AbstractMultimapTester<K, V, Multimap<K, V>> {
50 Multimap<K, V> target = getSubjectGenerator().create(); in testPutAllIntoEmpty()
57 Multimap<K, V> source = getSubjectGenerator().create( in testPutAll()
67 Multimap<K, V> source = getSubjectGenerator().create( in testPutAllWithNullValue()
75 Multimap<K, V> source = getSubjectGenerator().create( in testPutAllWithNullKey()
83 Multimap<K, V> source = getSubjectGenerator().create( in testPutAllRejectsNullValue()
94 Multimap<K, V> source = getSubjectGenerator().create( in testPutAllRejectsNullKey()
105 Multimap<K, V> source = getSubjectGenerator().create( in testPutAllPropagatesToGet()
DMultimapFeature.java20 import com.google.common.collect.Multimap;
38 public enum MultimapFeature implements Feature<Multimap> {
41 private final Set<Feature<? super Multimap>> implied;
43 MultimapFeature(Feature<? super Multimap> ... implied) { in MultimapFeature()
48 public Set<Feature<? super Multimap>> getImpliedFeatures() { in getImpliedFeatures()
DMultimapEqualsTester.java22 import com.google.common.collect.Multimap;
38 public class MultimapEqualsTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
57 Multimap<K, V> original = multimap(); in testEqualsMultimapWithNullKey()
59 Multimap<K, V> withNull = multimap(); in testEqualsMultimapWithNullKey()
69 Multimap<K, V> original = multimap(); in testEqualsMultimapWithNullValue()
71 Multimap<K, V> withNull = multimap(); in testEqualsMultimapWithNullValue()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMultimaps.java107 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map, in newMultimap()
318 public static <K, V, M extends Multimap<K, V>> M invertFrom( in invertFrom()
319 Multimap<? extends V, ? extends K> source, M dest) { in invertFrom()
360 public static <K, V> Multimap<K, V> synchronizedMultimap( in synchronizedMultimap()
361 Multimap<K, V> multimap) { in synchronizedMultimap()
382 public static <K, V> Multimap<K, V> unmodifiableMultimap( in unmodifiableMultimap()
383 Multimap<K, V> delegate) { in unmodifiableMultimap()
397 @Deprecated public static <K, V> Multimap<K, V> unmodifiableMultimap( in unmodifiableMultimap()
404 final Multimap<K, V> delegate;
411 UnmodifiableMultimap(final Multimap<K, V> delegate) { in UnmodifiableMultimap()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMultimaps.java111 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map, in newMultimap()
407 public static <K, V, M extends Multimap<K, V>> M invertFrom( in invertFrom()
408 Multimap<? extends V, ? extends K> source, M dest) { in invertFrom()
449 public static <K, V> Multimap<K, V> synchronizedMultimap( in synchronizedMultimap()
450 Multimap<K, V> multimap) { in synchronizedMultimap()
471 public static <K, V> Multimap<K, V> unmodifiableMultimap( in unmodifiableMultimap()
472 Multimap<K, V> delegate) { in unmodifiableMultimap()
486 @Deprecated public static <K, V> Multimap<K, V> unmodifiableMultimap( in unmodifiableMultimap()
493 final Multimap<K, V> delegate;
500 UnmodifiableMultimap(final Multimap<K, V> delegate) { in UnmodifiableMultimap()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/trigger/
DTriggerRepository.java25 import com.google.common.collect.Multimap;
76 private final Multimap<String, Trigger> mTriggers;
88 public synchronized Multimap<String, Trigger> getAllTriggers() { in getAllTriggers()
144 private Multimap<String, Trigger> deserializeTriggersFromString(String triggers) { in deserializeTriggersFromString()
152 return (Multimap<String, Trigger>) objectInputStream.readObject(); in deserializeTriggersFromString()
160 private String serializeTriggersToString(Multimap<String, Trigger> triggers) { in serializeTriggersToString()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DEnvironmentGetter.java23 import com.google.common.collect.Multimap;
73 Multimap<String, String> cpuInfo = propertiesFromLinuxFile("/proc/cpuinfo"); in getLinuxEnvironment()
80 Multimap<String, String> memInfo = propertiesFromLinuxFile("/proc/meminfo"); in getLinuxEnvironment()
86 private static String describe(Multimap<String, String> cpuInfo, String s) { in describe()
102 private static Multimap<String, String> propertiesFromLinuxFile(String file) { in propertiesFromLinuxFile()

12345