Lines Matching full:underlying
64 Map<String, Integer> underlying = Maps.newHashMap();
65 underlying.put("a", 1);
66 underlying.put("b", 2);
67 underlying.put("c", 3);
68 return Maps.transformValues(underlying, Functions.toStringFunction());
111 Map<String, Integer> underlying = ImmutableMap.of("a", 1);
113 underlying, Functions.<Integer>identity());
114 assertMapsEqual(underlying, map);
140 Map<String, Integer> underlying = Maps.newHashMap();
141 underlying.put("a", 1);
143 = Maps.transformValues(underlying, Functions.toStringFunction());
149 Map<String, String> underlying = Maps.newHashMap();
150 underlying.put("a", null);
151 underlying.put("b", "");
153 Map<String, Boolean> map = Maps.transformValues(underlying,
172 Map<String, Integer> underlying = Maps.newHashMap();
173 underlying.put("a", 1);
174 underlying.put("b", 2);
175 underlying.put("c", 3);
177 = Maps.transformValues(underlying, Functions.toStringFunction());
178 assertEquals(underlying.size(), map.size());
180 underlying.put("d", 4);
181 assertEquals(underlying.size(), map.size());
184 underlying.remove("c");
185 assertEquals(underlying.size(), map.size());
188 underlying.clear();
189 assertEquals(underlying.size(), map.size());
193 Map<String, Integer> underlying = Maps.newLinkedHashMap();
194 underlying.put("a", 1);
195 underlying.put("b", 2);
196 underlying.put("c", 3);
197 underlying.put("d", 4);
198 underlying.put("e", 5);
199 underlying.put("f", 6);
200 underlying.put("g", 7);
202 = Maps.transformValues(underlying, Functions.toStringFunction());
205 assertFalse(underlying.containsKey("a"));
209 assertFalse(underlying.containsKey("b"));
214 assertFalse(underlying.containsKey("c"));
218 assertFalse(underlying.containsKey("d"));
223 assertFalse(underlying.containsKey("e"));
228 assertFalse(underlying.containsKey("f"));
233 assertFalse(underlying.containsKey("g"));
235 assertTrue(underlying.isEmpty());
243 Map<String, Integer> underlying = ImmutableMap.of("a", 0, "b", 1, "c", 2);
245 = Maps.transformValues(underlying, Functions.<Integer>identity());
250 equalToUnderlying.putAll(underlying);
267 Map<String, Boolean> underlying = Maps.newHashMap();
268 underlying.put("a", null);
269 underlying.put("b", true);
270 underlying.put(null, true);
273 underlying, new Function<Boolean, Boolean>() {