Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 253 for KeySet (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        CacheTesting.warmUp(cache, 0, 10);
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10, 11, 12));
    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. guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeySetContainsNullKeyPresent() {
        initMultimapWithNullKey();
        assertTrue(multimap().keySet().contains(null));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        for (int i = 0; i < 10; i++) {
          cache.getUnchecked(i);
          ticker.advance(1, MILLISECONDS);
        }
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // 0 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // reorder
        getAll(cache, asList(0, 1, 2));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeySetContainsNullKeyPresent() {
        initMultimapWithNullKey();
        assertTrue(multimap().keySet().contains(null));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java

        getMap().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyFromKeySetRemovesFromInverse() {
        getMap().keySet().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveFromValuesRemovesFromInverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.2K bytes
    - Click Count (1)
  6. build-tools-internal/src/main/resources/templates/release-notes.asciidoc

        print "* ${change.summary}\n"
    }
    }
    for (changeType in changelogsByVersionByTypeByArea[version].keySet()) { %>
    [[${ changeType }-${ unqualifiedVersion }]]
    [float]
    === ${ TYPE_LABELS.getOrDefault(changeType, 'No mapping for TYPE_LABELS[' + changeType + ']') }
    <% for (team in changelogsByVersionByTypeByArea[version][changeType].keySet()) {
        print "\n${team}::\n";
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 1.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      @LazyInit private transient @Nullable Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = new KeySet() : result;
      }
    
      @WeakOuter
      private final class KeySet extends ForwardingSet<K> {
        @Override
        protected Set<K> delegate() {
          return delegate.keySet();
        }
    
        @Override
        public void clear() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertThat(((SynchronizedSet<?>) keySet).mutex).isSameInstanceAs(mutex);
      }
    
      public void testValues() {
        Map<String, Integer> map = create();
        Collection<Integer> values = map.values();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        // Even though rowKeySet, columnKeySet, and cellSet have the same
        // iteration ordering, row has an inconsistent ordering.
        assertThat(table.row('b').keySet()).containsExactly(1, 2).inOrder();
        assertThat(ImmutableTable.copyOf(table).row('b').keySet()).containsExactly(2, 1).inOrder();
      }
    
      public void testCopyOfSparse() {
        Table<Character, Integer, String> table = TreeBasedTable.create();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ForwardingMap.java

        return delegate().put(key, value);
      }
    
      @Override
      public void putAll(Map<? extends K, ? extends V> map) {
        delegate().putAll(map);
      }
    
      @Override
      public Set<K> keySet() {
        return delegate().keySet();
      }
    
      @Override
      public Collection<V> values() {
        return delegate().values();
      }
    
      @Override
      public Set<Entry<K, V>> entrySet() {
        return delegate().entrySet();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 9.8K bytes
    - Click Count (0)
Back to Top