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

12 3 4 5 6 7 8 9

  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
EnvironmentGetter.java 23 import com.google.common.collect.Multimap;
73 Multimap<String, String> cpuInfo = propertiesFromLinuxFile("/proc/cpuinfo");
80 Multimap<String, String> memInfo = propertiesFromLinuxFile("/proc/meminfo");
86 private static String describe(Multimap<String, String> cpuInfo, String s) {
100 * empty Multimap.
102 private static Multimap<String, String> propertiesFromLinuxFile(String file) {
115 // If there's any problem reading the file, just return an empty multimap.
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
ArrayListMultimapTest.java 46 Multimap<String, Integer> multimap = create(); local
47 multimap.put("foo", 1);
48 multimap.put("foo", 3);
49 assertTrue(multimap.get("foo") instanceof RandomAccess);
50 assertTrue(multimap.get("bar") instanceof RandomAccess);
57 Multimap<String, Integer> multimap = create(); local
58 multimap.put("foo", 1);
59 multimap.put("foo", 3)
68 Multimap<String, Integer> multimap = create(); local
82 ListMultimap<String, Integer> multimap = create(); local
100 Multimap<String, Integer> multimap = create(); local
110 ArrayListMultimap<String, Integer> multimap local
116 ArrayListMultimap<String, Integer> multimap local
135 ArrayListMultimap<String, Integer> multimap local
143 ArrayListMultimap<String, Integer> multimap local
149 ArrayListMultimap<String, Integer> multimap local
    [all...]
ImmutableSetMultimapTest.java 41 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() local
44 assertEquals(ImmutableSet.of(1), multimap.get("one"));
90 Multimap<String, Integer> multimap = builder.build(); local
91 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
92 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
93 assertEquals(7, multimap.size());
102 Multimap<String, Integer> multimap = builder.build(); local
103 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"))
122 Multimap<String, Integer> multimap = builder.build(); local
134 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
144 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
158 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
218 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
243 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
263 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
290 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
311 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
329 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
335 Multimap<String, Integer> multimap = createMultimap(); local
358 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
375 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
381 Multimap<String, Integer> multimap = createMultimap(); local
396 Multimap<String, Integer> multimap = createMultimap(); local
402 Multimap<String, Integer> multimap = createMultimap(); local
458 ImmutableSetMultimap<String, Character> multimap = local
    [all...]
MultimapsTest.java 105 Multimap<String, Integer> mod = HashMultimap.create();
106 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod);
111 assertSame(immutable, Multimaps.unmodifiableMultimap((Multimap<String, Integer>) immutable));
118 ListMultimap<String, Integer> multimap local
120 assertTrue(multimap.get("foo") instanceof RandomAccess);
121 assertTrue(multimap.get("bar") instanceof RandomAccess);
128 ListMultimap<String, Integer> multimap local
130 assertFalse(multimap.get("foo") instanceof RandomAccess);
131 assertFalse(multimap.get("bar") instanceof RandomAccess);
135 Multimap<String, Integer> mod = HashMultimap.create()
266 Multimap<String, Integer> multimap = Multimaps.invertFrom(empty, local
289 Multimap<String, Integer> multimap = Multimaps.newMultimap( local
318 Multimap<String, Integer> multimap = HashMultimap.create(); local
389 Multimap<String, Integer> multimap = Multimaps.forMap(map); local
502 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
527 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
557 ListMultimap<Color, Integer> multimap = local
581 SetMultimap<Color, Integer> multimap = local
602 SortedSetMultimap<Color, Integer> multimap = local
691 Multimap<K, V> multimap = Multimaps.synchronizedMultimap( local
705 SetMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
726 SetMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
749 ListMultimap<String, Integer> multimap = ArrayListMultimap.create(); local
    [all...]
MapConstraintsTest.java 210 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
211 Multimap<String, Integer> constrained = MapConstraints.constrainedMultimap(
212 multimap, TEST_CONSTRAINT);
213 multimap.put(TEST_KEY, TEST_VALUE);
215 multimap.get("bar").add(2);
217 multimap.get("qux").addAll(Arrays.asList(4));
219 multimap.putAll("zag", Arrays.asList(6));
221 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>()
225 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>(
263 ListMultimap<String, Integer> multimap local
276 ListMultimap<String, Integer> multimap local
289 SetMultimap<String, Integer> multimap local
303 SortedSetMultimap<String, Integer> multimap local
316 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
426 Multimap<String, Integer> multimap = Multimaps.newMultimap( local
483 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
503 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
518 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
532 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
546 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
561 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
585 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
595 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
605 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
AbstractMultimapTester.java 22 import com.google.common.collect.Multimap;
34 * Superclass for all {@code Multimap} testers.
39 public abstract class AbstractMultimapTester<K, V, M extends Multimap<K, V>>
42 private M multimap; field in class:AbstractMultimapTester
44 protected M multimap() { method in class:AbstractMultimapTester
45 return multimap;
112 return ((TestMultimapGenerator<K, V, ? extends Multimap<K, V>>) getSubjectGenerator()
117 return ((TestMultimapGenerator<K, V, ? extends Multimap<K, V>>) getSubjectGenerator()
123 return multimap.entries();
129 multimap = super.resetContainer(newContents)
    [all...]
MultimapSizeTester.java 25 import com.google.common.collect.Multimap;
33 * Tester for the {@code size} methods of {@code Multimap} and its views.
38 public class MultimapSizeTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
42 Multimap<K, V> multimap = multimap(); local
43 assertEquals(expectedSize, multimap.size());
46 for (Entry<K, V> entry : multimap.entries()) {
47 assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue()));
53 for (Entry<K, Collection<V>> entry2 : multimap.asMap().entrySet())
    [all...]
MultimapContainsKeyTester.java 24 import com.google.common.collect.Multimap;
29 * Tester for the {@code containsKey} methods of {@code Multimap} and its {@code asMap()} view.
35 extends AbstractMultimapTester<K, V, Multimap<K, V>> {
38 assertTrue(multimap().containsKey(sampleKeys().e0));
42 assertFalse(multimap().containsKey(sampleKeys().e3));
46 for (K k : multimap().keySet()) {
47 assertTrue(multimap().containsKey(k));
53 assertEquals(!multimap().get(k).isEmpty(), multimap().containsKey(k));
59 assertEquals(multimap().containsKey(k), multimap().asMap().containsKey(k))
    [all...]
MultimapValuesTester.java 24 import com.google.common.collect.Multimap;
33 * Tester for {@code Multimap.values}.
38 public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
44 assertThat(multimap().values()).has().exactlyAs(expected);
53 assertThat(multimap().values()).has().exactlyAs(expected).inOrder();
60 Iterator<V> valuesItr = multimap().values().iterator();
63 assertTrue(multimap().isEmpty());
  /external/guava/guava-tests/test/com/google/common/collect/
MultimapsTest.java 109 Multimap<String, Integer> mod = HashMultimap.create();
110 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod);
115 assertSame(immutable, Multimaps.unmodifiableMultimap((Multimap<String, Integer>) immutable));
126 Multimap<String, Integer> unmodifiable =
135 ListMultimap<String, Integer> multimap local
137 assertTrue(multimap.get("foo") instanceof RandomAccess);
138 assertTrue(multimap.get("bar") instanceof RandomAccess);
145 ListMultimap<String, Integer> multimap local
147 assertFalse(multimap.get("foo") instanceof RandomAccess);
148 assertFalse(multimap.get("bar") instanceof RandomAccess)
208 SortedSetMultimap<String, Integer> multimap local
218 SortedSetMultimap<String, Integer> multimap = local
358 Multimap<String, Integer> multimap = Multimaps.invertFrom(empty, local
381 Multimap<String, Integer> multimap = Multimaps.newMultimap( local
410 Multimap<String, Integer> multimap = HashMultimap.create(); local
490 Multimap<String, Integer> multimap = Multimaps.forMap(map); local
603 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
628 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
651 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); local
668 ListMultimap<Color, Integer> multimap = local
686 ListMultimap<Color, Integer> multimap = Multimaps.newListMultimap(map, factory); local
702 SetMultimap<Color, Integer> multimap = local
716 SetMultimap<Color, Integer> multimap = Multimaps.newSetMultimap(map, factory); local
733 SortedSetMultimap<Color, Integer> multimap = local
749 SortedSetMultimap<Color, Integer> multimap = Multimaps.newSortedSetMultimap(map, factory); local
832 SetMultimap<String, Integer> multimap = local
848 Multimap<String, String> multimap = LinkedListMultimap.create(); local
864 ListMultimap<String, Integer> multimap = local
881 SetMultimap<String, Integer> multimap = local
898 ListMultimap<String, Integer> multimap = local
918 Multimap<K, V> multimap = Multimaps.synchronizedMultimap( local
932 SetMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
953 SetMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
976 ListMultimap<String, Integer> multimap = ArrayListMultimap.create(); local
    [all...]
LinkedListMultimapTest.java 68 ListMultimap<String, String> multimap = LinkedListMultimap.create();
70 multimap.put(entry.getKey(), entry.getValue());
72 return multimap;
98 Multimap<String, Integer> multimap = create(); local
99 multimap.put("foo", 1);
100 multimap.put("foo", 3);
101 assertFalse(multimap.get("foo") instanceof RandomAccess);
102 assertFalse(multimap.get("bar") instanceof RandomAccess);
110 Multimap<String, Integer> multimap = create() local
122 Multimap<String, Integer> multimap = create(); local
132 Multimap<String, Integer> multimap = LinkedListMultimap.create(); local
143 LinkedListMultimap<String, Integer> multimap local
320 ListMultimap<String, Integer> multimap = create(); local
360 private LinkedListMultimap<String, Integer> multimap; local
381 private Multimap<String, Integer> multimap; local
405 private LinkedListMultimap<String, Integer> multimap; local
428 private Multimap<String, Integer> multimap; local
466 private Multimap<String, Integer> multimap; local
    [all...]
ConstrainedMultimapAsMapImplementsMapTest.java 26 * Test {@link Multimap#asMap()} for a constrained multimap with
47 Multimap<String, Integer> delegate = ArrayListMultimap.create();
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...]
ImmutableSetMultimapTest.java 74 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() local
77 assertEquals(ImmutableSet.of(1), multimap.get("one"));
123 Multimap<String, Integer> multimap = builder.build(); local
124 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
125 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
126 assertEquals(7, multimap.size());
135 Multimap<String, Integer> multimap = builder.build(); local
136 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"))
155 Multimap<String, Integer> multimap = builder.build(); local
167 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
177 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
191 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
251 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
276 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
296 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
323 ImmutableSetMultimap<String, Integer> multimap = builder.build(); local
344 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
362 Multimap<String, Integer> multimap = ImmutableSetMultimap.copyOf(input); local
368 Multimap<String, Integer> multimap = createMultimap(); local
391 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
408 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
414 Multimap<String, Integer> multimap = createMultimap(); local
429 Multimap<String, Integer> multimap = createMultimap(); local
435 Multimap<String, Integer> multimap = createMultimap(); local
491 ImmutableSetMultimap<String, Character> multimap = local
509 Multimap<String, Integer> multimap = createMultimap(); local
525 Multimap<String, Integer> multimap = ImmutableSetMultimap.of(); local
531 Multimap<String, Integer> multimap = new ImmutableSetMultimap.Builder<String, Integer>() local
    [all...]
BenchmarkHelpers.java 84 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) {
90 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) {
96 <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) {
101 abstract <K, V> ListMultimap<K, V> create(Multimap<K, V> contents);
108 Multimap<K, V> contents) {
115 Multimap<K, V> contents) {
122 Multimap<K, V> contents) {
129 Multimap<K, V> contents) {
135 Multimap<K, V> contents);
ArrayListMultimapTest.java 53 ListMultimap<String, String> multimap = ArrayListMultimap.create();
55 multimap.put(entry.getKey(), entry.getValue());
57 return multimap;
83 Multimap<String, Integer> multimap = create(); local
84 multimap.put("foo", 1);
85 multimap.put("foo", 3);
86 assertTrue(multimap.get("foo") instanceof RandomAccess);
87 assertTrue(multimap.get("bar") instanceof RandomAccess);
94 Multimap<String, Integer> multimap = create() local
105 Multimap<String, Integer> multimap = create(); local
119 ListMultimap<String, Integer> multimap = create(); local
137 Multimap<String, Integer> multimap = create(); local
147 ArrayListMultimap<String, Integer> multimap local
153 ArrayListMultimap<String, Integer> multimap local
172 ArrayListMultimap<String, Integer> multimap local
180 ArrayListMultimap<String, Integer> multimap local
186 ArrayListMultimap<String, Integer> multimap local
    [all...]
MultimapsCollectionTest.java 100 Multimap<Integer, String> multimap, String[] elements) {
101 multimap.put(2, "foo");
103 multimap.put(3, element);
108 Multimap<String, Integer> multimap, String[] elements) {
110 multimap.put(element, 2);
111 multimap.put(element, 3);
116 Multimap<Integer, String> multimap, String[] elements)
190 Multimap<String, Integer> multimap = createMultimap(); local
354 Multimap<String, String> multimap = ArrayListMultimap.create(); local
518 SetMultimap<String, Integer> multimap = LinkedHashMultimap.create(); local
539 ListMultimap<String, Integer> multimap = LinkedListMultimap.create(); local
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
Multimaps.java 48 * Provides static methods acting on or generating a {@code Multimap}.
65 * Creates a new {@code Multimap} backed by {@code map}, whose internal value
72 * {@link Multimap#equals}.
75 * multimap iteration order. They also specify the behavior of the
77 * multimap and its returned views. However, the multimap's {@code get}
81 * <p>The multimap is serializable if {@code map}, {@code factory}, the
82 * collections generated by {@code factory}, and the multimap contents are all
85 * <p>The multimap is not threadsafe when any concurrent operations update the
86 * multimap, even if {@code map} and the instances generated b
    [all...]
ArrayListMultimap.java 30 * Implementation of {@code Multimap} that uses an {@code ArrayList} to store
38 * <p>This multimap allows duplicate key-value pairs. After adding a new
43 * <p>Keys and values may be null. All optional multimap methods are supported,
50 * multimap. Concurrent read operations will work correctly. To allow concurrent
51 * update operations, wrap your multimap with a call to {@link
55 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
56 * {@code Multimap}</a>.
92 * specified multimap.
94 * @param multimap the multimap whose contents are copied to this multima
    [all...]
TreeMultimap.java 32 * Implementation of {@code Multimap} whose keys and values are ordered by
52 * <p>The multimap does not store duplicate key-value pairs. Adding a new
56 * respective comparators support them). All optional multimap methods are
60 * multimap. Concurrent read operations will work correctly. To allow concurrent
61 * update operations, wrap your multimap with a call to {@link
65 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
66 * {@code Multimap}</a>.
103 * keys and values, with the same mappings as the specified multimap.
105 * @param multimap the multimap whose contents are copied to this multima
    [all...]
  /external/guava/guava/src/com/google/common/collect/
ForwardingMultimap.java 29 * A multimap which forwards all its method calls to another multimap.
31 * the backing multimap as desired per the <a
39 implements Multimap<K, V> {
44 @Override protected abstract Multimap<K, V> delegate();
107 public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
108 return delegate().putAll(multimap);
ListMultimap.java 28 * A {@code Multimap} that can hold duplicate key-value pairs and that maintains
29 * the insertion ordering of values for a given key. See the {@link Multimap}
37 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
38 * {@code Multimap}</a>.
44 public interface ListMultimap<K, V> extends Multimap<K, V> {
50 * {@link java.util.Collection} specified in the {@link Multimap} interface.
60 * {@link java.util.Collection} specified in the {@link Multimap} interface.
70 * {@link java.util.Collection} specified in the {@link Multimap} interface.
87 * Compares the specified object to this multimap for equality.
94 * Multimap}, including an empty {@code SetMultimap}
    [all...]
SetMultimap.java 28 * A {@code Multimap} that cannot hold duplicate key-value pairs. Adding a
29 * key-value pair that's already in the multimap has no effect. See the {@link
30 * Multimap} documentation for information common to all multimaps.
43 * multimap change in a manner that affects {@code equals} comparisons.
48 * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#Multimap">
49 * {@code Multimap}</a>.
55 public interface SetMultimap<K, V> extends Multimap<K, V> {
61 * specified in the {@link Multimap} interface.
71 * specified in the {@link Multimap} interface.
81 * specified in the {@link Multimap} interface
    [all...]
Multimaps.java 52 * Provides static methods acting on or generating a {@code Multimap}.
69 * Creates a new {@code Multimap} backed by {@code map}, whose internal value
76 * {@link Multimap#equals}.
79 * multimap iteration order. They also specify the behavior of the
81 * multimap and its returned views. However, the multimap's {@code get}
85 * <p>The multimap is serializable if {@code map}, {@code factory}, the
86 * collections generated by {@code factory}, and the multimap contents are all
89 * <p>The multimap is not threadsafe when any concurrent operations update the
90 * multimap, even if {@code map} and the instances generated b
    [all...]
  /external/guava/guava/src/com/google/common/eventbus/
AnnotatedSubscriberFinder.java 27 import com.google.common.collect.Multimap;
69 public Multimap<Class<?>, EventSubscriber> findAllSubscribers(Object listener) {
70 Multimap<Class<?>, EventSubscriber> methodsInListener = HashMultimap.create();

Completed in 990 milliseconds

12 3 4 5 6 7 8 9