/external/guava/guava-gwt/src/com/google/common/collect/ |
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()) {
|
TreeMultimap_CustomFieldSerializer.java | 48 TreeMultimap<?, ?> multimap) throws SerializationException { 49 out.writeObject(multimap.keyComparator()); 50 out.writeObject(multimap.valueComparator()); 51 Multimap_CustomFieldSerializerBase.serialize(out, multimap);
|
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()) {
|
Multimap_CustomFieldSerializerBase.java | 27 * This class contains static utility methods for writing {@code Multimap} GWT 29 * {@link #serialize(SerializationStreamWriter, Multimap)} and to either 31 * {@link #populate(SerializationStreamReader, Multimap)}. 53 public static Multimap<Object, Object> populate( 54 SerializationStreamReader reader, Multimap<Object, Object> multimap) 62 multimap.put(key, value); 65 return multimap; 69 SerializationStreamWriter writer, Multimap<?, ?> instance)
|
/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-tests/test/com/google/common/collect/ |
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;
|
MapConstraintsTest.java | 212 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 213 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap( 214 multimap, TEST_CONSTRAINT); 215 multimap.put(TEST_KEY, TEST_VALUE); 217 multimap.get("bar").add(2); 219 multimap.get("qux").addAll(Arrays.asList(4)); 221 multimap.putAll("zag", Arrays.asList(6)); 223 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>() 227 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>( 265 ListMultimap<String, Integer> multimap local 278 ListMultimap<String, Integer> multimap local 291 SetMultimap<String, Integer> multimap local 305 SortedSetMultimap<String, Integer> multimap local 318 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 428 Multimap<String, Integer> multimap = Multimaps.newMultimap( local 485 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 505 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 520 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 534 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 548 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 563 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 587 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 597 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local 607 Multimap<String, Integer> multimap = LinkedListMultimap.create(); 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...] |
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...] |
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...] |
MultimapsFilterEntriesAsMapTest.java | 45 private Multimap<String, Integer> createMultimap() { 46 Multimap<String, Integer> unfiltered = HashMultimap.create(); 54 Multimap<String, Integer> multimap = createMultimap(); local 55 return multimap.asMap(); 59 Multimap<String, Integer> multimap = createMultimap(); local 60 populate(multimap); 61 return multimap.asMap();
|
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...] |
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...] |
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...] |
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...] |
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...] |
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...] |
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...] |
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...] |
ImmutableMultimapTest.java | 39 ImmutableMultimap<String, Integer> multimap = new Builder<String, Integer>() local 42 assertEquals(Arrays.asList(1), multimap.get("one")); 102 Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of( local 104 assertEquals(1, multimap.get(0).size()); 105 assertTrue(multimap.get(0).contains(unhashables.e0)); 110 Multimap<Integer, Object> multimap = ImmutableMultimap.<Integer, Object>of( local 112 assertEquals(2, multimap.get(0).size()); 113 assertTrue(multimap.get(0).contains(unhashables.e0)) [all...] |
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...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/debug/ |
multimap.h | 1 // Debugging multimap implementation -*- C++ -*- 26 /** @file debug/multimap.h 41 /// Class std::multimap with safety/checking/debug instrumentation. 44 class multimap class in namespace:__debug 45 : public _GLIBCXX_STD_C::multimap<_Key, _Tp, _Compare, _Allocator>, 46 public __gnu_debug::_Safe_sequence<multimap<_Key, _Tp, 49 typedef _GLIBCXX_STD_C::multimap<_Key, _Tp, _Compare, _Allocator> _Base; 50 typedef __gnu_debug::_Safe_sequence<multimap> _Safe_base; 65 typedef __gnu_debug::_Safe_iterator<_Base_iterator, multimap> 68 multimap> const_iterator 78 explicit multimap(const _Compare& __comp = _Compare(), function in class:__debug::multimap 83 multimap(_InputIterator __first, _InputIterator __last, function in class:__debug::multimap 91 multimap(const multimap& __x) function in class:__debug::multimap 94 multimap(const _Base& __x) function in class:__debug::multimap 98 multimap(multimap&& __x) function in class:__debug::multimap 102 multimap(initializer_list<value_type> __l, function in class:__debug::multimap [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/profile/ |
multimap.h | 1 // Profiling multimap implementation -*- C++ -*- 25 /** @file profile/multimap.h 38 /// Class std::multimap wrapper with performance instrumentation. 41 class multimap class in namespace:__profile 42 : public _GLIBCXX_STD_C::multimap<_Key, _Tp, _Compare, _Allocator> 44 typedef _GLIBCXX_STD_C::multimap<_Key, _Tp, _Compare, _Allocator> _Base; 67 explicit multimap(const _Compare& __comp = _Compare(), function in class:__profile::multimap 72 multimap(_InputIterator __first, _InputIterator __last, function in class:__profile::multimap 77 multimap(const multimap& __x function in class:__profile::multimap 80 multimap(const _Base& __x) function in class:__profile::multimap 84 multimap(multimap&& __x) function in class:__profile::multimap 88 multimap(initializer_list<value_type> __l, function in class:__profile::multimap [all...] |