HomeSort by relevance Sort by last modified time
    Searched refs:Multimap (Results 76 - 100 of 223) sorted by null

1 2 34 5 6 7 8 9

  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
BuilderValidator.java 22 import com.google.common.collect.Multimap;
108 Multimap<Equivalence.Wrapper<TypeMirror>, ExecutableElement> methodsPerParam =
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableListMultimap.java 32 * a <i>view</i> of a separate multimap which can still change, an instance of
36 * you easily make a "defensive copy" of a multimap provided to your class by
55 /** Returns the empty multimap. */
56 // Casting is safe because the multimap will never hold any elements.
63 * Returns an immutable multimap containing a single entry.
73 * Returns an immutable multimap containing the given entries, in order.
84 * Returns an immutable multimap containing the given entries, in order.
97 * Returns an immutable multimap containing the given entries, in order.
111 * Returns an immutable multimap containing the given entries, in order.
140 * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
TreeMultimapExplicitTest.java 78 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local
80 multimap.put("google", 2);
81 multimap.put("google", 6);
82 multimap.put(null, 3);
83 multimap.put(null, 1);
84 multimap.put(null, 7);
85 multimap.put("tree", 0);
86 multimap.put("tree", null);
87 return multimap;
113 Multimap<String, Integer> multimap = create() local
124 TreeMultimap<String, Integer> multimap = createPopulate(); local
130 TreeMultimap<String, Integer> multimap = createPopulate(); local
137 TreeMultimap<String, Integer> multimap = createPopulate(); local
142 TreeMultimap<String, Integer> multimap = createPopulate(); local
157 TreeMultimap<String, Integer> multimap = createPopulate(); local
169 TreeMultimap<String, Integer> multimap = createPopulate(); local
174 TreeMultimap<String, Integer> multimap = createPopulate(); local
181 Multimap<String, Integer> multimap = create(); local
196 TreeMultimap<String, Integer> multimap = createPopulate(); local
    [all...]
TreeMultimapNaturalTest.java 50 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
51 multimap.put("google", 2);
52 multimap.put("google", 6);
53 multimap.put("foo", 3);
54 multimap.put("foo", 1);
55 multimap.put("foo", 7);
56 multimap.put("tree", 4);
57 multimap.put("tree", 0);
58 return multimap;
62 SetMultimap<String, Integer> multimap = create() local
70 TreeMultimap<String, Integer> multimap = createPopulate(); local
77 TreeMultimap<String, Integer> multimap = createPopulate(); local
82 TreeMultimap<String, Integer> multimap = createPopulate(); local
97 TreeMultimap<String, Integer> multimap = createPopulate(); local
109 TreeMultimap<String, Integer> multimap = createPopulate(); local
115 SetMultimap<String, Integer> multimap = create(); local
183 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
189 TreeMultimap<String, Integer> multimap = createPopulate(); local
206 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultimapAsMapGetTester.java 28 import com.google.common.collect.Multimap;
36 * Tests for {@code Multimap.asMap().get(Object)}.
41 public class MultimapAsMapGetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
50 Collection<V> result = multimap().asMap().get(sampleKeys().e0);
52 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0));
53 assertEquals(2, multimap().size());
59 Collection<V> result = multimap().asMap().get(sampleKeys().e0);
67 Collection<V> result = multimap().asMap().get(sampleKeys().e0);
76 Collection<V> result = multimap().asMap().get(sampleKeys().e0);
78 assertTrue(multimap().containsEntry(sampleKeys().e0, null))
    [all...]
MultimapAsMapTester.java 28 import com.google.common.collect.Multimap;
42 * Tests for {@link Multimap#asMap}.
47 public class MultimapAsMapTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
57 Collection<V> collection = multimap().asMap().get(key);
70 assertThat(multimap().asMap().get(null)).has().exactly(getValueForNullKey());
75 assertThat(multimap().asMap().get(null)).isNull();
81 multimap().asMap().get(null);
89 assertThat(multimap().asMap().remove(sampleKeys().e0)).iteratesAs(sampleValues().e0);
91 assertEquals(getNumElements() - 1, multimap().size());
101 Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet()
    [all...]
MultimapEntriesTester.java 28 import com.google.common.collect.Multimap;
39 * Tester for {@code Multimap.entries}.
44 public class MultimapEntriesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
46 assertThat(multimap().entries()).has().exactlyAs(getSampleElements());
53 assertThat(multimap().entries()).has().allOf(
59 assertFalse(multimap().entries().contains(Helpers.mapEntry(null, sampleValues().e0)));
66 assertThat(multimap().entries()).has().allOf(
72 assertFalse(multimap().entries().contains(
79 assertTrue(multimap().entries().remove(
82 assertEquals(getNumElements() - 1, multimap().size())
103 multimap()); method
    [all...]
MultimapGetTester.java 29 import com.google.common.collect.Multimap;
38 * Tests for {@link Multimap#get(Object)}.
43 public class MultimapGetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
45 Collection<V> result = multimap().get(sampleKeys().e3);
52 Collection<V> result = multimap().get(sampleKeys().e0);
80 Collection<V> result = multimap().get(sampleKeys().e0);
82 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0));
83 assertEquals(2, multimap().size());
89 Collection<V> result = multimap().get(sampleKeys().e0);
96 Collection<V> result = multimap().get(sampleKeys().e0)
    [all...]
MultimapKeysTester.java 26 import com.google.common.collect.Multimap;
37 * Tester for {@code Multimap.entries}.
42 public class MultimapKeysTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
49 Multiset<K> keys = multimap().keys();
61 assertEquals(0, multimap().keys().count(null));
71 Multiset<K> keys = multimap().keys();
82 assertEquals(multimap().keySet(), multimap().keys().elementSet());
87 int original = multimap().keys().remove(sampleKeys().e0, 1);
88 assertEquals(Math.max(original - 1, 0), multimap().get(sampleKeys().e0).size())
    [all...]
MultimapRemoveEntryTester.java 29 import com.google.common.collect.Multimap;
40 * Tests for {@link Multimap#remove(Object, Object)}.
45 public class MultimapRemoveEntryTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
48 assertFalse(multimap().remove(sampleKeys().e0, sampleValues().e1));
55 assertTrue(multimap().remove(sampleKeys().e0, sampleValues().e0));
57 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0));
59 assertEquals(getNumElements() - 1, multimap().size());
68 assertTrue(multimap().remove(null, getValueForNullKey()));
79 assertTrue(multimap().remove(getKeyForNullValue(), null));
87 assertFalse(multimap().remove(null, sampleValues().e0))
    [all...]
MultimapReplaceValuesTester.java 27 import com.google.common.collect.Multimap;
39 * Tests for {@link Multimap#replaceValues(Object, Iterable)}.
45 extends AbstractMultimapTester<K, V, Multimap<K, V>> {
49 int size = multimap().size();
53 multimap().replaceValues(key, values);
59 int size = multimap().size();
63 multimap().replaceValues(key, values);
69 int size = multimap().size();
73 multimap().replaceValues(key, values);
75 assertEquals(size + values.size(), multimap().size())
    [all...]
MultimapPutIterableTester.java 28 import com.google.common.collect.Multimap;
37 * Tests for {@link Multimap#putAll(Object, Iterable)}.
42 public class MultimapPutIterableTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
46 assertTrue(multimap().putAll(sampleKeys().e0, new Iterable<V>() {
58 assertTrue(multimap().putAll(
65 assertTrue(multimap().putAll(sampleKeys().e3, new Iterable<V>() {
76 assertTrue(multimap().putAll(
84 assertTrue(multimap().putAll(sampleKeys().e0, Lists.newArrayList(sampleValues().e3, null)));
90 assertTrue(multimap().putAll(sampleKeys().e3, Lists.newArrayList(sampleValues().e3, null)));
96 multimap().putAll(sampleKeys().e1, Lists.newArrayList((V) null))
    [all...]
MultimapPutTester.java 28 import com.google.common.collect.Multimap;
39 * Tester for {@link Multimap#put}.
44 public class MultimapPutTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
48 multimap().put(sampleKeys().e3, sampleValues().e3);
62 assertTrue(multimap().put(key, value));
65 assertEquals(size + 1, multimap().size());
79 assertTrue(multimap().put(key, newValue));
82 assertEquals(size + 1, multimap().size());
93 List<V> values = Helpers.copyToList(multimap().get(key));
95 assertTrue(multimap().put(key, v1))
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
TreeMultimapExplicitTest.java 80 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local
82 multimap.put("google", 2);
83 multimap.put("google", 6);
84 multimap.put(null, 3);
85 multimap.put(null, 1);
86 multimap.put(null, 7);
87 multimap.put("tree", 0);
88 multimap.put("tree", null);
89 return multimap;
115 Multimap<String, Integer> multimap = create() local
126 TreeMultimap<String, Integer> multimap = createPopulate(); local
132 TreeMultimap<String, Integer> multimap = createPopulate(); local
139 TreeMultimap<String, Integer> multimap = createPopulate(); local
144 TreeMultimap<String, Integer> multimap = createPopulate(); local
159 TreeMultimap<String, Integer> multimap = createPopulate(); local
171 TreeMultimap<String, Integer> multimap = createPopulate(); local
176 TreeMultimap<String, Integer> multimap = createPopulate(); local
183 Multimap<String, Integer> multimap = create(); local
198 TreeMultimap<String, Integer> multimap = createPopulate(); local
211 TreeMultimap<String, Integer> multimap = createPopulate(); local
    [all...]
  /external/guice/core/src/com/google/inject/internal/
CycleDetectingLock.java 11 import com.google.common.collect.Multimap;
109 private final Multimap<Long, ReentrantCycleDetectingLock> locksOwnedByThread =
ProviderMethodsModule.java 25 import com.google.common.collect.Multimap;
130 Multimap<Signature, Method> methodsBySignature = HashMultimap.create();
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
ContactAggregatorHelperTest.java 23 import com.google.common.collect.Multimap;
112 Multimap<Long, Long> matchingrawIdPairs = HashMultimap.create();
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
FlagManagerTest.java 23 import com.google.common.collect.Multimap;
120 Multimap<String, String> regionToLanguages = ArrayListMultimap.create();
  /external/guava/guava/src/com/google/common/collect/
ImmutableMultimap.java 40 * An immutable {@link Multimap}. Does not permit null keys or values.
42 * <p>Unlike {@link Multimaps#unmodifiableMultimap(Multimap)}, which is
43 * a <i>view</i> of a separate multimap which can still change, an instance of
47 * you easily make a "defensive copy" of a multimap provided to your class by
54 * <p>In addition to methods defined by {@link Multimap}, an {@link #inverse}
68 /** Returns an empty multimap. */
74 * Returns an immutable multimap containing a single entry.
81 * Returns an immutable multimap containing the given entries, in order.
88 * Returns an immutable multimap containing the given entries, in order.
96 * Returns an immutable multimap containing the given entries, in order
502 final ImmutableMultimap<K, V> multimap; field in class:ImmutableMultimap.EntryCollection
    [all...]
FilteredEntryMultimap.java 40 * Implementation of {@link Multimaps#filterEntries(Multimap, Predicate)}.
47 final Multimap<K, V> unfiltered;
50 FilteredEntryMultimap(Multimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) {
56 public Multimap<K, V> unfiltered() {
ImmutableSetMultimap.java 46 * a <i>view</i> of a separate multimap which can still change, an instance of
50 * you easily make a "defensive copy" of a multimap provided to your class by
69 /** Returns the empty multimap. */
70 // Casting is safe because the multimap will never hold any elements.
77 * Returns an immutable multimap containing a single entry.
86 * Returns an immutable multimap containing the given entries, in order.
98 * Returns an immutable multimap containing the given entries, in order.
112 * Returns an immutable multimap containing the given entries, in order.
127 * Returns an immutable multimap containing the given entries, in order.
152 * Multimap for {@link ImmutableSetMultimap.Builder} that maintains ke
426 private transient final ImmutableSetMultimap<K, V> multimap; field in class:ImmutableSetMultimap.EntrySet
    [all...]
ImmutableListMultimap.java 37 * a <i>view</i> of a separate multimap which can still change, an instance of
41 * you easily make a "defensive copy" of a multimap provided to your class by
60 /** Returns the empty multimap. */
61 // Casting is safe because the multimap will never hold any elements.
68 * Returns an immutable multimap containing a single entry.
78 * Returns an immutable multimap containing the given entries, in order.
89 * Returns an immutable multimap containing the given entries, in order.
102 * Returns an immutable multimap containing the given entries, in order.
116 * Returns an immutable multimap containing the given entries, in order.
145 * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/roots/
ProvidersCache.java 52 import com.google.common.collect.Multimap;
97 private Multimap<String, RootInfo> mRoots = ArrayListMultimap.create();
418 private final Multimap<String, RootInfo> mTaskRoots = ArrayListMultimap.create();
  /external/guava/guava/src/com/google/common/net/
MediaType.java 41 import com.google.common.collect.Multimap;
380 /** Returns a multimap containing the parameters of this media type. */
427 public MediaType withParameters(Multimap<String, String> parameters) {
563 Multimap<String, String> parameters) {
708 Multimap<String, String> quotedParameters = Multimaps.transformValues(parameters,
  /external/guava/guava-testlib/src/com/google/common/testing/
AbstractPackageSanityTests.java 32 import com.google.common.collect.Multimap;
305 Multimap<Class<?>, Class<?>> testClasses = HashMultimap.create();

Completed in 861 milliseconds

1 2 34 5 6 7 8 9