@Test public void testValues() { map.put("foo", () -> "foovalue"); map.put("foo", () -> "foovalue2"); map.put("bar", () -> "foovalue3"); map.put("baz", () -> "foovalue4"); Collection<String> values = map.values(); assertEquals(3, values.size()); Lists.newArrayList("foovalue", "foovalue3", "foovalue4").stream() .forEach(v -> assertTrue(values.contains(v))); }
Collection<V> values() { return map.values().stream().map(v -> v.v).collect(Collectors.toList()); }
RefCountingMap { Collection<V> values() { return map.values().stream().map(v -> v.v).collect(Collectors.toList()); } }
RefCountingMap { Collection<V> values() { return map.values().stream().map(v -> v.v).collect(Collectors.toList()); }  }
RefCountingMap { Collection<V> values() { return map.values().stream().map(v -> v.v).collect(Collectors.toList()); }   }
RefCountingMap { Collection<V> values() { return map.values().stream().map(v -> v.v).collect(Collectors.toList()); }    }