Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 320 for KeySet (0.51 seconds)

  1. guava/src/com/google/common/collect/StandardRowSortedTable.java

        return new RowSortedMap();
      }
    
      @WeakOuter
      private final class RowSortedMap extends RowMap implements SortedMap<R, Map<C, V>> {
        @Override
        public SortedSet<R> keySet() {
          return (SortedSet<R>) super.keySet();
        }
    
        @Override
        SortedSet<R> createKeySet() {
          return new Maps.SortedKeySet<>(this);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/HashBiMap.java

          toRemove = null;
        }
    
        abstract T output(Node<K, V> node);
      }
    
      @Override
      public Set<K> keySet() {
        return new KeySet();
      }
    
      private final class KeySet extends Maps.KeySet<K, V> {
        KeySet() {
          super(HashBiMap.this);
        }
    
        @Override
        public Iterator<K> iterator() {
          return new BiIterator<K, V, K>(HashBiMap.this) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            delegate().clear();
          }
        }
    
        @Override
        public Set<K> keySet() {
          synchronized (mutex) {
            if (keySet == null) {
              keySet = typePreservingSet(delegate().keySet(), mutex);
            }
            return keySet;
          }
        }
    
        @Override
        public Collection<V> values() {
          synchronized (mutex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java

        assertEmpty(multimap());
        assertEquals(multimap(), getSubjectGenerator().create());
        assertEmpty(multimap().entries());
        assertEmpty(multimap().asMap());
        assertEmpty(multimap().keySet());
        assertEmpty(multimap().keys());
        assertEmpty(multimap().values());
        for (K key : sampleKeys()) {
          assertGet(key);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(20, 22);
        cache.put(5, 10);
    
        fakeTicker.advance(501, MILLISECONDS);
    
        assertThat(cache.asMap().keySet().contains(20)).isTrue();
        assertThat(cache.asMap().keySet().contains(5)).isTrue();
        assertThat(cache.asMap().keySet().contains(10)).isFalse();
      }
    
      @Test
      @J2ktIncompatible
      public void asMapEntrySet() {
        Cache<Integer, Integer> cache =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

          biMap.clear();
        }
      }
    
      @LazyInit private transient Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = new KeySet() : result;
      }
    
      private final class KeySet extends View<K, V, K> {
        KeySet() {
          super(HashBiMap.this);
        }
    
        @Override
        @ParametricNullness
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 37K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java

      }
    
      @Override
      SortedMap<K, Collection<V>> backingMap() {
        return (SortedMap<K, Collection<V>>) super.backingMap();
      }
    
      @Override
      public SortedSet<K> keySet() {
        return (SortedSet<K>) super.keySet();
      }
    
      @Override
      Set<K> createKeySet() {
        return createMaybeNavigableKeySet();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemoveImplementsSet() {
        List<K> keys = new ArrayList<>(multimap().keySet());
        for (K key : keys) {
          resetCollection();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableMapKeySet.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * {@code keySet()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    final class ImmutableMapKeySet<K, V> extends IndexedImmutableSet<K> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemoveImplementsSet() {
        List<K> keys = new ArrayList<>(multimap().keySet());
        for (K key : keys) {
          resetCollection();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top