HomeSort by relevance Sort by last modified time
    Searched refs:multimap (Results 1 - 25 of 122) sorted by null

1 2 3 4 5

  /external/guava/guava-tests/test/com/google/common/collect/
LinkedHashMultimapTest.java 46 @Override protected Multimap<String, Integer> create() {
50 private Multimap<String, Integer> initializeMultimap5() {
51 Multimap<String, Integer> multimap = getMultimap(); local
52 multimap.put("foo", 5);
53 multimap.put("bar", 4);
54 multimap.put("foo", 3);
55 multimap.put("cow", 2);
56 multimap.put("bar", 1);
57 return multimap;
66 Multimap<String, Integer> multimap = initializeMultimap5(); local
71 Multimap<String, Integer> multimap = initializeMultimap5(); local
76 Multimap<String, Integer> multimap = initializeMultimap5(); local
82 Multimap<String, Integer> multimap = initializeMultimap5(); local
118 Multimap<String, Integer> multimap = initializeMultimap5(); local
133 Multimap<String, Integer> multimap = getMultimap(); local
156 Multimap<String, Integer> multimap = LinkedHashMultimap.create(); local
162 Multimap<String, Integer> multimap = initializeMultimap5(); local
167 LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
176 Multimap<String, Integer> multimap = createSample(); local
184 LinkedHashMultimap<String, Integer> multimap local
210 private Multimap<String, Integer> multimap; local
238 private Multimap<String, Integer> multimap; local
258 private Multimap<String, Integer> multimap; local
278 private Multimap<String, Integer> multimap; local
299 private Multimap<String, Integer> multimap; local
336 private Multimap<String, Integer> multimap; local
    [all...]
AbstractListMultimapTest.java 45 * Test adding duplicate key-value pairs to multimap.
48 Multimap<String, Integer> multimap = create(); local
49 multimap.put("foo", 1);
50 multimap.put("foo", 3);
51 multimap.put("bar", 3);
52 multimap.put("foo", 1);
53 assertEquals(4, multimap.size());
54 assertTrue(multimap.containsEntry("foo", 1));
55 multimap.remove("foo", 1)
64 Multimap<String, Integer> multimap = create(); local
72 Multimap<String, Integer> multimap = create(); local
91 Multimap<String, Integer> multimap = create(); local
98 Multimap<String, Integer> multimap = getMultimap(); local
122 Multimap<String, Integer> multimap = create(); local
134 Multimap<String, Integer> multimap = create(); local
149 Multimap<String, Integer> multimap = create(); local
164 Multimap<String, Integer> multimap = create(); local
177 ListMultimap<String, Integer> multimap = create(); local
205 ListMultimap<String, Integer> multimap = create(); local
223 ListMultimap<String, Integer> multimap = create(); local
242 ListMultimap<String, Integer> multimap = create(); local
266 ListMultimap<String, Integer> multimap = create(); local
296 ListMultimap<String, Integer> multimap = create(); local
311 ListMultimap<String, Integer> multimap = create(); local
335 ListMultimap<String, Integer> multimap = create(); local
355 ListMultimap<String, Integer> multimap = create(); local
371 ListMultimap<String, Integer> multimap = create(); local
391 ListMultimap<String, Integer> multimap = create(); local
413 private ListMultimap<String, Integer> multimap; local
484 ListMultimap<String, Integer> multimap = create(); local
500 ListMultimap<String, Integer> multimap = create(); local
516 ListMultimap<String, Integer> multimap = create(); local
    [all...]
ArrayListMultimapTest.java 44 Multimap<String, Integer> multimap = create(); local
45 multimap.put("foo", 1);
46 multimap.put("foo", 3);
47 assertTrue(multimap.get("foo") instanceof RandomAccess);
48 assertTrue(multimap.get("bar") instanceof RandomAccess);
55 Multimap<String, Integer> multimap = create(); local
56 multimap.put("foo", 1);
57 multimap.put("foo", 3)
66 Multimap<String, Integer> multimap = create(); local
80 ListMultimap<String, Integer> multimap = create(); local
98 Multimap<String, Integer> multimap = createSample(); local
105 ArrayListMultimap<String, Integer> multimap local
111 ArrayListMultimap<String, Integer> multimap local
130 ArrayListMultimap<String, Integer> multimap local
138 ArrayListMultimap<String, Integer> multimap local
144 ArrayListMultimap<String, Integer> multimap local
    [all...]
AbstractMultimapTest.java 40 * Tests for {@code Multimap} implementations. Caution: when subclassing avoid
48 private Multimap<String, Integer> multimap; field in class:AbstractMultimapTest
50 protected abstract Multimap<String, Integer> create();
52 protected Multimap<String, Integer> createSample() {
53 Multimap<String, Integer> sample = create();
62 multimap = create();
65 protected Multimap<String, Integer> getMultimap() {
66 return multimap;
88 * Validate multimap size by calling {@code size()} and also by iteratin
    [all...]
HashMultimapTest.java 28 @Override protected Multimap<String, Integer> create() {
37 HashMultimap<String, Integer> multimap = HashMultimap.create(); local
38 multimap.put("foo", 1);
39 multimap.put("bar", 2);
40 multimap.put("foo", 3);
41 assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
42 assertEquals(8, multimap.expectedValuesPerKey);
46 Multimap<String, Integer> multimap = createSample(); local
47 HashMultimap<String, Integer> copy = HashMultimap.create(multimap);
53 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); local
    [all...]
AbstractSetMultimapTest.java 38 Multimap<String, Integer> multimap = getMultimap(); local
39 assertTrue(multimap.put("foo", 1));
40 assertTrue(multimap.put("foo", 3));
41 assertTrue(multimap.put("bar", 3));
42 assertFalse(multimap.put("foo", 1));
44 assertTrue(multimap.containsEntry("foo", 1));
45 assertTrue(multimap.remove("foo", 1));
47 assertFalse(multimap.containsEntry("foo", 1));
51 Multimap<String, Integer> multimap = getMultimap() local
58 Multimap<String, Integer> multimap = getMultimap(); local
79 Multimap<String, Integer> multimap = getMultimap(); local
105 Multimap<String, Integer> multimap = create(); local
128 Multimap<String, Integer> multimap = getMultimap(); local
136 Multimap<String, Integer> multimap = create(); local
155 Multimap<String, Integer> multimap = getMultimap(); local
    [all...]
SubMapMultimapAsMapImplementsMapTest.java 40 TreeMultimap<String, Integer> multimap local
43 multimap.put("a", -1);
44 multimap.put("a", -3);
45 multimap.put("z", -2);
46 return multimap;
54 TreeMultimap<String, Integer> multimap = createMultimap(); local
55 multimap.put("f", 1);
56 multimap.put("f", 2);
57 multimap.put("g", 3);
58 multimap.put("h", 4)
    [all...]
ImmutableSetMultimapTest.java 44 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() local
47 assertEquals(ImmutableSet.of(1), multimap.get("one"));
93 Multimap<String, Integer> multimap = builder.build(); local
94 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
95 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
96 assertEquals(7, multimap.size());
105 Multimap<String, Integer> multimap = builder.build(); local
106 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"))
125 Multimap<String, Integer> multimap = builder.build(); local
137 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
147 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
161 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
221 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
241 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
268 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
289 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
307 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
313 Multimap<String, Integer> multimap = createMultimap(); local
336 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
353 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
359 Multimap<String, Integer> multimap = createMultimap(); local
374 Multimap<String, Integer> multimap = createMultimap(); local
380 Multimap<String, Integer> multimap = createMultimap(); local
436 ImmutableSetMultimap<String, Character> multimap = local
454 Multimap<String, Integer> multimap = createMultimap(); local
470 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
    [all...]
ImmutableListMultimapTest.java 44 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>() local
47 assertEquals(Arrays.asList(1), multimap.get("one"));
93 Multimap<String, Integer> multimap = builder.build(); local
94 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"));
95 assertEquals(Arrays.asList(4, 5), multimap.get("bar"));
96 assertEquals(7, multimap.size());
105 Multimap<String, Integer> multimap = builder.build(); local
106 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo"))
125 Multimap<String, Integer> multimap = builder.build(); local
137 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
149 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
171 Multimap<String, Integer> multimap = builder.build(); local
233 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
250 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
268 ImmutableListMultimap<String, Integer> multimap = builder.build(); local
280 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
291 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
298 Multimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); local
304 Multimap<String, Integer> multimap = createMultimap(); local
327 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
344 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
355 Multimap<String, Integer> multimap = createMultimap(); local
370 Multimap<String, Integer> multimap = createMultimap(); local
376 Multimap<String, Integer> multimap = createMultimap(); local
433 ImmutableListMultimap<String, Character> multimap = local
458 Multimap<String, Integer> multimap = createMultimap(); local
474 Multimap<String, Integer> multimap = ImmutableListMultimap.of(); local
    [all...]
TreeMultimapNaturalTest.java 50 @Override protected Multimap<String, Integer> create() {
68 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
69 multimap.put("google", 2);
70 multimap.put("google", 6);
71 multimap.put("foo", 3);
72 multimap.put("foo", 1);
73 multimap.put("foo", 7);
74 multimap.put("tree", 4);
75 multimap.put("tree", 0);
76 return multimap;
85 TreeMultimap<String, Integer> multimap = createPopulate(); local
92 TreeMultimap<String, Integer> multimap = createPopulate(); local
97 TreeMultimap<String, Integer> multimap = createPopulate(); local
112 TreeMultimap<String, Integer> multimap = createPopulate(); local
124 TreeMultimap<String, Integer> multimap = createPopulate(); local
130 TreeMultimap<String, Integer> multimap = createPopulate(); local
139 TreeMultimap<String, Integer> multimap = createPopulate(); local
148 TreeMultimap<String, Integer> multimap = createPopulate(); local
154 TreeMultimap<String, Integer> multimap = createPopulate(); local
168 TreeMultimap<String, Integer> multimap = createPopulate(); local
182 TreeMultimap<String, Integer> multimap = createPopulate(); local
194 Multimap<String, Integer> multimap = createSample(); local
260 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
266 TreeMultimap<String, Integer> multimap = createPopulate(); local
278 TreeMultimap<String, Integer> multimap = createPopulate(); local
306 private Multimap<String, Integer> multimap; local
333 private Multimap<String, Integer> multimap; local
353 private Multimap<String, Integer> multimap; local
373 private Multimap<String, Integer> multimap; local
394 private Multimap<String, Integer> multimap; local
439 private Multimap<String, Integer> multimap; local
463 TreeMultimap<String, Integer> multimap = createPopulate(); local
474 TreeMultimap<DerivedComparable, DerivedComparable> multimap = TreeMultimap.create(); local
475 assertEquals(ImmutableMultimap.of(), multimap); local
494 TreeMultimap<LegacyComparable, LegacyComparable> multimap local
496 assertEquals(ImmutableMultimap.of(), multimap); local
517 TreeMultimap<String, Integer> multimap = createPopulate(); local
534 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); local
    [all...]
TreeMultimapExplicitTest.java 68 @Override protected Multimap<String, Integer> create() {
77 TreeMultimap<String, Integer> multimap = TreeMultimap.create( local
79 multimap.put("google", 2);
80 multimap.put("google", 6);
81 multimap.put(null, 3);
82 multimap.put(null, 1);
83 multimap.put(null, 7);
84 multimap.put("tree", 0);
85 multimap.put("tree", null);
86 return multimap;
117 TreeMultimap<String, Integer> multimap = createPopulate(); local
123 TreeMultimap<String, Integer> multimap = createPopulate(); local
130 TreeMultimap<String, Integer> multimap = createPopulate(); local
135 TreeMultimap<String, Integer> multimap = createPopulate(); local
150 TreeMultimap<String, Integer> multimap = createPopulate(); local
161 TreeMultimap<String, Integer> multimap = createPopulate(); local
166 TreeMultimap<String, Integer> multimap = createPopulate(); local
173 Multimap<String, Integer> multimap = createSample(); local
183 TreeMultimap<String, Integer> multimap = createPopulate(); local
196 TreeMultimap<String, Integer> multimap = createPopulate(); local
    [all...]
LinkedListMultimapTest.java 60 Multimap<String, Integer> multimap = create(); local
61 multimap.put("foo", 1);
62 multimap.put("foo", 3);
63 assertFalse(multimap.get("foo") instanceof RandomAccess);
64 assertFalse(multimap.get("bar") instanceof RandomAccess);
72 Multimap<String, Integer> multimap = create(); local
73 multimap.put("foo", 1);
74 multimap.put("foo", 3)
84 Multimap<String, Integer> multimap = create(); local
94 Multimap<String, Integer> multimap = createSample(); local
101 LinkedListMultimap<String, Integer> multimap local
288 ListMultimap<String, Integer> multimap = create(); local
306 ListMultimap<String, Integer> multimap = create(); local
346 private LinkedListMultimap<String, Integer> multimap; local
367 private Multimap<String, Integer> multimap; local
391 private LinkedListMultimap<String, Integer> multimap; local
414 private Multimap<String, Integer> multimap; local
452 private Multimap<String, Integer> multimap; local
    [all...]
ForwardingListMultimapTest.java 34 final ListMultimap<String, Boolean> multimap = local
38 return multimap;
ForwardingSetMultimapTest.java 34 final SetMultimap<String, Boolean> multimap = local
38 return multimap;
ForwardingSortedSetMultimapTest.java 34 final SortedSetMultimap<String, Boolean> multimap = local
38 return multimap;
MultimapCollectionTest.java 66 * Run collection tests on {@link Multimap} implementations.
132 Multimap<Integer, String> multimap, String[] elements) {
133 multimap.put(2, "foo");
135 multimap.put(3, element);
140 Multimap<String, Integer> multimap, String[] elements) {
142 multimap.put(element, 2);
143 multimap.put(element, 3);
148 Multimap<Integer, String> multimap, String[] elements)
222 Multimap<String, Integer> multimap = createMultimap(); local
    [all...]
AbstractMultimapAsMapImplementsMapTest.java 26 * Test {@link Multimap#asMap()} for an arbitrary multimap with
41 protected void populate(Multimap<String, Integer> multimap) {
42 multimap.put("one", 1);
43 multimap.put("two", 2);
44 multimap.put("two", 22);
45 multimap.put("three", 3);
46 multimap.put("three", 33);
47 multimap.put("three", 333)
    [all...]
MultimapsTest.java 75 @Override protected Multimap<String, Integer> create() {
108 Multimap<String, Integer> mod = HashMultimap.create();
109 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod);
114 assertSame(immutable, Multimaps.unmodifiableMultimap((Multimap<String, Integer>) immutable));
125 Multimap<String, Integer> unmodifiable =
134 ListMultimap<String, Integer> multimap local
136 assertTrue(multimap.get("foo") instanceof RandomAccess);
137 assertTrue(multimap.get("bar") instanceof RandomAccess);
144 ListMultimap<String, Integer> multimap local
146 assertFalse(multimap.get("foo") instanceof RandomAccess)
207 SortedSetMultimap<String, Integer> multimap local
217 SortedSetMultimap<String, Integer> multimap = local
358 Multimap<String, Integer> multimap = Multimaps.invertFrom(empty, local
384 Multimap<String, Integer> multimap = HashMultimap.create(); local
464 Multimap<String, Integer> multimap = Multimaps.forMap(map); local
557 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
580 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
597 ListMultimap<Color, Integer> multimap = local
615 ListMultimap<Color, Integer> multimap = Multimaps.newListMultimap(map, factory); local
631 SetMultimap<Color, Integer> multimap = local
645 SetMultimap<Color, Integer> multimap = Multimaps.newSetMultimap(map, factory); local
662 SortedSetMultimap<Color, Integer> multimap = local
678 SortedSetMultimap<Color, Integer> multimap = Multimaps.newSortedSetMultimap(map, factory); local
794 SetMultimap<String, Integer> multimap = local
811 Multimap<String, String> multimap = LinkedListMultimap.create(); local
827 ListMultimap<String, Integer> multimap = local
844 SetMultimap<String, Integer> multimap = local
861 ListMultimap<String, Integer> multimap = local
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
UnmodifiableCollectionTests.java 28 import com.google.common.collect.Multimap;
251 * Verifies that a multimap is immutable.
253 * <p>A multimap is considered immutable if:
258 * multimap throw UnsupportedOperationException when those mutators
261 * @param multimap the presumed-immutable multimap
263 * {@code multimap}. {@code multimap} may or may not have {@code sampleKey} as
266 * {@code multimap}. {@code multimap} may or may not have {@code sampleValue
    [all...]
  /external/guava/guava-gwt/src/com/google/common/collect/
LinkedHashMultimap_CustomFieldSerializer.java 38 LinkedHashMultimap<Object, Object> multimap = local
43 multimap.linkedEntries.clear(); // will clear and repopulate entries
44 for (int i = 0; i < multimap.size(); i++) {
47 multimap.linkedEntries.add(Maps.immutableEntry(key, value));
50 return multimap;
54 LinkedHashMultimap<?, ?> multimap) throws SerializationException {
55 Multimap_CustomFieldSerializerBase.serialize(out, multimap);
56 for (Map.Entry<?, ?> entry : multimap.entries()) {
TreeMultimap_CustomFieldSerializer.java 48 TreeMultimap<?, ?> multimap) throws SerializationException {
49 out.writeObject(multimap.keyComparator());
50 out.writeObject(multimap.valueComparator());
51 Multimap_CustomFieldSerializerBase.serialize(out, multimap);
LinkedListMultimap_CustomFieldSerializer.java 38 LinkedListMultimap<Object, Object> multimap = LinkedListMultimap.create(); local
43 multimap.put(key, value);
45 return multimap;
49 LinkedListMultimap<?, ?> multimap) throws SerializationException {
50 out.writeInt(multimap.size());
51 for (Map.Entry<?, ?> entry : multimap.entries()) {
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/debug/
multimap.h 1 // Debugging multimap implementation -*- C++ -*-
26 /** @file debug/multimap.h
43 class multimap class in namespace:std::__debug
44 : public _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator>,
45 public __gnu_debug::_Safe_sequence<multimap<_Key, _Tp,
48 typedef _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator> _Base;
49 typedef __gnu_debug::_Safe_sequence<multimap> _Safe_base;
61 typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, multimap>
64 multimap> const_iterator;
76 explicit multimap(const _Compare& __comp = _Compare() function in class:std::__debug::multimap
81 multimap(_InputIterator __first, _InputIterator __last, function in class:std::__debug::multimap
87 multimap(const multimap& __x) function in class:std::__debug::multimap
90 multimap(const _Base& __x) function in class:std::__debug::multimap
94 multimap(multimap&& __x) function in class:std::__debug::multimap
98 multimap(initializer_list<value_type> __l, function in class:std::__debug::multimap
    [all...]
  /prebuilts/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/debug/
multimap.h 1 // Debugging multimap implementation -*- C++ -*-
26 /** @file debug/multimap.h
43 class multimap class in namespace:std::__debug
44 : public _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator>,
45 public __gnu_debug::_Safe_sequence<multimap<_Key, _Tp,
48 typedef _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator> _Base;
49 typedef __gnu_debug::_Safe_sequence<multimap> _Safe_base;
61 typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, multimap>
64 multimap> const_iterator;
76 explicit multimap(const _Compare& __comp = _Compare() function in class:std::__debug::multimap
81 multimap(_InputIterator __first, _InputIterator __last, function in class:std::__debug::multimap
87 multimap(const multimap& __x) function in class:std::__debug::multimap
90 multimap(const _Base& __x) function in class:std::__debug::multimap
94 multimap(multimap&& __x) function in class:std::__debug::multimap
98 multimap(initializer_list<value_type> __l, function in class:std::__debug::multimap
    [all...]
  /prebuilts/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/debug/
multimap.h 1 // Debugging multimap implementation -*- C++ -*-
26 /** @file debug/multimap.h
43 class multimap class in namespace:std::__debug
44 : public _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator>,
45 public __gnu_debug::_Safe_sequence<multimap<_Key, _Tp,
48 typedef _GLIBCXX_STD_D::multimap<_Key, _Tp, _Compare, _Allocator> _Base;
49 typedef __gnu_debug::_Safe_sequence<multimap> _Safe_base;
61 typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, multimap>
64 multimap> const_iterator;
76 explicit multimap(const _Compare& __comp = _Compare() function in class:std::__debug::multimap
81 multimap(_InputIterator __first, _InputIterator __last, function in class:std::__debug::multimap
87 multimap(const multimap& __x) function in class:std::__debug::multimap
90 multimap(const _Base& __x) function in class:std::__debug::multimap
94 multimap(multimap&& __x) function in class:std::__debug::multimap
98 multimap(initializer_list<value_type> __l, function in class:std::__debug::multimap
    [all...]

Completed in 457 milliseconds

1 2 3 4 5