Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for containsValue (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

       */
      ALLOWS_NULL_KEY_QUERIES,
      ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES),
      /**
       * The map does not throw {@code NullPointerException} on calls such as {@code
       * containsValue(null)}, {@code values().contains(null)} or {@code values().remove(null)}.
       */
      ALLOWS_NULL_VALUE_QUERIES,
      ALLOWS_NULL_VALUES(ALLOWS_NULL_VALUE_QUERIES),
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top