Lines Matching defs:ms
43 Multiset<Color> ms = EnumMultiset.create(Color.class);
44 ms.add(Color.RED);
45 ms.add(Color.YELLOW);
46 ms.add(Color.RED);
47 assertEquals(0, ms.count(Color.BLUE));
48 assertEquals(1, ms.count(Color.YELLOW));
49 assertEquals(2, ms.count(Color.RED));
53 Multiset<Color> ms = EnumMultiset.create(
55 assertEquals(0, ms.count(Color.BLUE));
56 assertEquals(1, ms.count(Color.YELLOW));
57 assertEquals(2, ms.count(Color.RED));
69 Multiset<Color> ms = EnumMultiset.create(Color.class);
70 ms.add(Color.BLUE, 3);
71 ms.add(Color.YELLOW, 1);
72 ms.add(Color.RED, 2);
73 assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString());
78 Multiset<Color> ms = EnumMultiset.create(
80 assertEquals(ms, SerializableTester.reserialize(ms));
84 Multiset<Color> ms = EnumMultiset.create(Color.class);
85 ms.add(Color.BLUE, 3);
86 ms.add(Color.YELLOW, 1);
87 ms.add(Color.RED, 2);
90 uniqueEntries.addAll(ms.entrySet());