- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 37 for containsEntry (0.13 sec)
-
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
map.put(1, "1"); Entry<Integer, String> entry = getOnlyElement(map.entrySet()); map.remove(1); entry.setValue("one"); assertThat(map).containsEntry(1, "one"); } public void testAllocArraysDefault() { CompactHashMap<Integer, String> map = CompactHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertFalse(multimap.containsKey("cat")); assertTrue(multimap.containsValue(1)); assertFalse(multimap.containsValue(5)); assertTrue(multimap.containsEntry("foo", 1)); assertFalse(multimap.containsEntry("cat", 1)); assertFalse(multimap.containsEntry("foo", 5)); assertFalse(multimap.entries().isEmpty()); assertEquals(3, multimap.size()); assertFalse(multimap.isEmpty());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 25.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractMultimap.java
for (Collection<V> collection : asMap().values()) { if (collection.contains(value)) { return true; } } return false; } @Override public boolean containsEntry(@CheckForNull Object key, @CheckForNull Object value) { Collection<V> collection = asMap().get(key); return collection != null && collection.contains(value); } @CanIgnoreReturnValue @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 6.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
} @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemovePresent() { assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0()); assertEquals(getNumElements() - 1, multimap().size()); assertGet(k0(), ImmutableList.<V>of()); } @CollectionSize.Require(absent = ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
} @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemovePresent() { assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0()); assertEquals(getNumElements() - 1, multimap().size()); assertGet(k0(), ImmutableList.<V>of()); } @CollectionSize.Require(absent = ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMultimap.java
for (Collection<V> collection : asMap().values()) { if (collection.contains(value)) { return true; } } return false; } @Override public boolean containsEntry(@CheckForNull Object key, @CheckForNull Object value) { Collection<V> collection = asMap().get(key); return collection != null && collection.contains(value); } @CanIgnoreReturnValue @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 7.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
MapSplitter splitter = COMMA_SPLITTER.trimResults().withKeyValueSeparator(Splitter.on("->")); Map<String, String> split = splitter.split(" x -> y, z-> a "); assertThat(split).containsEntry("x ", " y"); assertThat(split).containsEntry("z", " a"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 29.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
Multimap<String, Integer> mod = HashMultimap.create(); Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); assertEquals(mod, unmod); mod.put("foo", 1); assertTrue(unmod.containsEntry("foo", 1)); assertEquals(mod, unmod); } @SuppressWarnings("unchecked") public void testUnmodifiableMultimapEntries() { Multimap<String, Integer> mod = HashMultimap.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 38.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 25.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* ... * FluentIterable<Color> allColors = FluentIterable.from(ImmutableSet.of(red, green, blue)); * * Map<String, Color> colorForName = allColors.uniqueIndex(toStringFunction()); * assertThat(colorForName).containsEntry("red", red); * }</pre> * * <p>If your index may associate multiple values with each key, use {@link #index(Function) * index}. * * <p><b>{@code Stream} equivalent:</b> use {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 24 13:42:31 UTC 2024 - 35.7K bytes - Viewed (0)