Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for containsValue (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top