- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for containsValue (0.08 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
unmappedValue = getValueNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsValue(unmappedValue)); assertTrue(map.containsValue(map.values().iterator().next())); if (allowsNullValues) { boolean unused = map.containsValue(null); } else { try { boolean unused2 = map.containsKey(null); } catch (NullPointerException optional) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertNull(map.put(one, one)); assertSame(one, map.get(one)); assertTrue(map.containsKey(one)); assertTrue(map.containsValue(one)); Object two = new Object(); assertSame(one, map.replace(one, two)); assertTrue(map.containsKey(one)); assertFalse(map.containsValue(one)); Object three = new Object(); assertTrue(map.replace(one, two, three)); assertTrue(map.remove(one, three));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertNull(map.put(one, one)); assertSame(one, map.get(one)); assertTrue(map.containsKey(one)); assertTrue(map.containsValue(one)); Object two = new Object(); assertSame(one, map.replace(one, two)); assertTrue(map.containsKey(one)); assertFalse(map.containsValue(one)); Object three = new Object(); assertTrue(map.replace(one, two, three)); assertTrue(map.remove(one, three));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
unmappedValue = getValueNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsValue(unmappedValue)); assertTrue(map.containsValue(map.values().iterator().next())); if (allowsNullValues) { boolean unused = map.containsValue(null); } else { try { boolean unused2 = map.containsKey(null); } catch (NullPointerException optional) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMap.java
delegate().clear(); } @Override public boolean containsKey(@CheckForNull Object key) { return delegate().containsKey(key); } @Override public boolean containsValue(@CheckForNull Object value) { return delegate().containsValue(value); } @Override @CheckForNull public V get(@CheckForNull Object key) { return delegate().get(key); } @CanIgnoreReturnValue @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 9.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertNull(segment.get(key, hash)); assertFalse(segment.containsKey(key, hash)); assertFalse(segment.containsValue(value)); // count == 1 segment.count++; assertSame(value, segment.get(key, hash)); assertTrue(segment.containsKey(key, hash)); assertTrue(segment.containsValue(value)); // don't see absent values now that count > 0 assertNull(segment.get(new Object(), hash));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertNull(segment.get(key, hash)); assertFalse(segment.containsKey(key, hash)); assertFalse(segment.containsValue(value)); // count == 1 segment.count++; assertSame(value, segment.get(key, hash)); assertTrue(segment.containsKey(key, hash)); assertTrue(segment.containsValue(value)); // don't see absent values now that count > 0 assertNull(segment.get(new Object(), hash));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
Multimap<String, Integer> multimap = createMultimap(); assertTrue(multimap.containsKey("foo")); 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));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
cache.put(2456, 56); cache.put(2, 15); fakeTicker.advance(10001, MILLISECONDS); assertTrue(cache.asMap().containsValue(15)); assertTrue(cache.asMap().containsValue(56)); assertFalse(cache.asMap().containsValue(2675)); } public void testAsMap_containsKey() { Cache<Integer, Integer> cache =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 14.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
} void setInverse(AbstractBiMap<V, K> inverse) { this.inverse = inverse; } // Query Operations (optimizations) @Override public boolean containsValue(@CheckForNull Object value) { return inverse.containsKey(value); } // Modification Operations @CanIgnoreReturnValue @Override @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Aug 24 01:40:03 UTC 2023 - 14.6K bytes - Viewed (0)