- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for containsValue (0.08 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java
public void testContains_yes() { assertTrue("containsValue(present) should return true", getMap().containsValue(v0())); } public void testContains_no() { assertFalse("containsValue(notPresent) should return false", getMap().containsValue(v3())); } @MapFeature.Require(ALLOWS_NULL_VALUE_QUERIES) public void testContains_nullNotContainedButAllowed() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java
public void testContains_yes() { assertTrue("containsValue(present) should return true", getMap().containsValue(v0())); } public void testContains_no() { assertFalse("containsValue(notPresent) should return false", getMap().containsValue(v3())); } @MapFeature.Require(ALLOWS_NULL_VALUE_QUERIES) public void testContains_nullNotContainedButAllowed() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java
for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) { assertTrue(testInstance.containsValue("foo")); assertTrue(testInstance.containsValue("bar")); assertTrue(testInstance.containsValue("baz")); assertFalse(testInstance.containsValue("blah")); } } public void testIsEmpty() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java
public void testContainsValueYes() { assertTrue(multimap().containsValue(v0())); } public void testContainsValueNo() { assertFalse(multimap().containsValue(v3())); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testContainsNullValueYes() { initMultimapWithNullValue(); assertTrue(multimap().containsValue(null)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:10:20 UTC 2024 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
public boolean containsKey(Object key) { assertTrue(Thread.holdsLock(mutex)); return super.containsKey(key); } @Override public boolean containsValue(Object value) { assertTrue(Thread.holdsLock(mutex)); return super.containsValue(value); } @Override public @Nullable V get(Object key) { assertTrue(Thread.holdsLock(mutex)); return super.get(key); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java
assertTrue(testTable.containsRow('a')); assertFalse(testTable.containsRow('A')); } public void testContainsValue() { assertTrue(testTable.containsValue("blah")); assertFalse(testTable.containsValue("")); } public void testGet() { assertEquals("blah", testTable.get('a', 1)); assertNull(testTable.get('a', 2)); assertNull(testTable.get('A', 1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
} } protected void expectMissingValues(V... elements) { for (V element : elements) { assertFalse("Should not contain value " + element, getMap().containsValue(element)); } } /** @return an array of the proper size with {@code null} as the key of the middle element. */ protected Entry<K, V>[] createArrayWithNullKey() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheManualTest.java
assertSame(one, cache.getIfPresent(two)); stats = cache.stats(); assertEquals(3, stats.missCount()); assertEquals(0, stats.loadSuccessCount()); assertEquals(0, stats.loadExceptionCount()); assertEquals(3, stats.hitCount()); assertSame(one, cache.asMap().get(two)); assertTrue(cache.asMap().containsKey(two)); assertTrue(cache.asMap().containsValue(one)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 5.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java
assertFalse(getMap().containsValue(v0())); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) @CollectionSize.Require(ONE) public void testForcePutNullKeyPresent() { initMapWithNullKey(); getMap().forcePut(null, v1()); expectContents(mapEntry((K) null, v1())); assertFalse(getMap().containsValue(v0())); assertTrue(getMap().containsValue(v1()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
} public void testContainsValue() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertTrue(table.containsValue('a')); assertTrue(table.containsValue('b')); assertTrue(table.containsValue('c')); assertFalse(table.containsValue('x')); assertFalse(table.containsValue(null)); } public void testGet() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0)