Lines Matching refs:Color
75 private enum Color {
84 Multiset<Color> ms = EnumMultiset.create(Color.class);
85 ms.add(Color.RED);
86 ms.add(Color.YELLOW);
87 ms.add(Color.RED);
88 assertEquals(0, ms.count(Color.BLUE));
89 assertEquals(1, ms.count(Color.YELLOW));
90 assertEquals(2, ms.count(Color.RED));
94 Multiset<Color> ms = EnumMultiset.create(
95 asList(Color.RED, Color.YELLOW, Color.RED));
96 assertEquals(0, ms.count(Color.BLUE));
97 assertEquals(1, ms.count(Color.YELLOW));
98 assertEquals(2, ms.count(Color.RED));
102 Collection<Color> empty = EnumSet.noneOf(Color.class);
110 Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
111 ms.add(Color.RED);
116 EnumMultiset.create(ImmutableList.<Color> of());
123 Multiset<Color> ms = EnumMultiset.create(Color.class);
124 ms.add(Color.BLUE, 3);
125 ms.add(Color.YELLOW, 1);
126 ms.add(Color.RED, 2);
132 Multiset<Color> ms = EnumMultiset.create(
133 asList(Color.RED, Color.YELLOW, Color.RED));
138 Multiset<Color> ms = EnumMultiset.create(Color.class);
139 ms.add(Color.BLUE, 3);
140 ms.add(Color.YELLOW, 1);
141 ms.add(Color.RED, 2);
160 .setDistinctValues(Class.class, Color.class, Gender.class)
161 .setDistinctValues(Enum.class, Color.BLUE, Color.RED)
169 .setDefault(Class.class, Color.class)
170 .setDefault(Iterable.class, EnumSet.allOf(Color.class))