Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for containsEntry (0.13 seconds)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertThat(map).containsEntry(10, 20);
        assertThat(map).containsEntry(20, 0);
        assertThat(map).containsEntry(30, 1);
        assertThat(map).containsEntry(54, 2);
        assertThat(map).containsEntry(443, 3);
        assertThat(map).containsEntry(1, 4);
        assertThat(cache.get(6)).isEqualTo(5);
        assertThat(cache.apply(7)).isEqualTo(6);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertThat(map).containsEntry(10, 20);
        assertThat(map).containsEntry(20, 0);
        assertThat(map).containsEntry(30, 1);
        assertThat(map).containsEntry(54, 2);
        assertThat(map).containsEntry(443, 3);
        assertThat(map).containsEntry(1, 4);
        assertThat(cache.get(6)).isEqualTo(5);
        assertThat(cache.apply(7)).isEqualTo(6);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Multimap.java

      /**
       * Returns {@code true} if this multimap contains at least one key-value pair with the key {@code
       * key} and the value {@code value}.
       */
      boolean containsEntry(
          @CompatibleWith("K") @Nullable Object key, @CompatibleWith("V") @Nullable Object value);
    
      // Modification Operations
    
      /**
       * Stores a key-value pair in this multimap.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 15K bytes
    - Click Count (0)
  6. 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");
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 29.7K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Multimap.java

      /**
       * Returns {@code true} if this multimap contains at least one key-value pair with the key {@code
       * key} and the value {@code value}.
       */
      boolean containsEntry(
          @CompatibleWith("K") @Nullable Object key, @CompatibleWith("V") @Nullable Object value);
    
      // Modification Operations
    
      /**
       * Stores a key-value pair in this multimap.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  8. android/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());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.2K bytes
    - Click Count (0)
  9. 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);
       * }
       *
       * <p>If your index may associate multiple values with each key, use {@link #index(Function)
       * index}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  10. 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);
       * }
       *
       * <p>If your index may associate multiple values with each key, use {@link #index(Function)
       * index}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
Back to Top