Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 320 for KeySet (0.05 seconds)

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

              }
            }
            return endOfData();
          }
        }
    
        @Override
        Set<R> createKeySet() {
          return new KeySet();
        }
    
        @WeakOuter
        private final class KeySet extends Maps.KeySet<R, V> {
          KeySet() {
            super(Column.this);
          }
    
          @Override
          public boolean contains(@Nullable Object obj) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          String value2 = key2.toString();
          assertThat(cache.getUnchecked(key1)).isSameInstanceAs(value1);
          assertThat(cache.getUnchecked(key2)).isSameInstanceAs(value2);
          assertThat(cache.asMap().keySet()).isEqualTo(ImmutableSet.of(key1, key2));
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertThat(cache.asMap().entrySet())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

              protected Map<String, Boolean> delegate() {
                return map;
              }
    
              @Override
              public Set<String> keySet() {
                return new StandardKeySet();
              }
            };
        callAllPublicMethods(new TypeToken<Set<String>>() {}, forward.keySet());
    
        // These are the methods specified by StandardKeySet
        verify(map, atLeast(0)).clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AcceptedRegressionsRuleSetup.java

            if (acceptedApiChanges != null) {
                this.acceptedApiChanges = AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges.get()).keySet();
            } else {
                this.acceptedApiChanges = Collections.emptySet();
            }
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void execute(ViolationCheckContext context) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

      @LazyInit @RetainedWith private transient @Nullable ImmutableSet<K> keySet;
    
      /**
       * Returns an immutable set of the keys in this map, in the same order that they appear in {@link
       * #entrySet}.
       */
      @Override
      public ImmutableSet<K> keySet() {
        ImmutableSet<K> result = keySet;
        return (result == null) ? keySet = createKeySet() : result;
      }
    
      /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        }
    
        @Override
        public int hashCode() {
          return standardHashCode();
        }
    
        @Override
        public Set<K> keySet() {
          /*
           * We can't use StandardKeySet, as NavigableMapTestSuiteBuilder assumes that our keySet is a
           * NavigableSet. We test StandardKeySet in the superclass, so it's still covered.
           */
          return navigableKeySet();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ForwardingSortedMap.java

        return delegate().tailMap(fromKey);
      }
    
      /**
       * A sensible implementation of {@link SortedMap#keySet} in terms of the methods of {@code
       * ForwardingSortedMap}. In many cases, you may wish to override {@link
       * ForwardingSortedMap#keySet} to forward to this implementation or a subclass thereof.
       *
       * @since 15.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  10. 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)
Back to Top