Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 320 for KeySet (0.28 seconds)

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

      }
    
      @LazyInit private transient @Nullable Set<K> keySetView;
    
      @Override
      public Set<K> keySet() {
        return (keySetView == null) ? keySetView = createKeySet() : keySetView;
      }
    
      Set<K> createKeySet() {
        return new KeySetView();
      }
    
      @WeakOuter
      class KeySetView extends Maps.KeySet<K, V> {
        KeySetView() {
          super(CompactHashMap.this);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/MapMakerInternalMap.java

        for (Segment<K, V, E, S> segment : segments) {
          segment.clear();
        }
      }
    
      @LazyInit transient @Nullable Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> ks = keySet;
        return (ks != null) ? ks : (keySet = new KeySet());
      }
    
      @LazyInit transient @Nullable Collection<V> values;
    
      @Override
      public Collection<V> values() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 89.9K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          Set<K> keySet = new HashSet<>();
          List<Entry<K, V>> builder = new ArrayList<>();
          for (Object o : elements) {
            Entry<?, ?> entry = (Entry<?, ?>) o;
            // These come from Entry<K, Collection<V>>> objects somewhere.
            @SuppressWarnings("unchecked")
            K key = (K) entry.getKey();
            keySet.add(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 26.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/TreeBasedTable.java

          this.upperBound = upperBound;
          checkArgument(
              lowerBound == null || upperBound == null || compare(lowerBound, upperBound) <= 0);
        }
    
        @Override
        public SortedSet<C> keySet() {
          return new Maps.SortedKeySet<>(this);
        }
    
        @Override
        public Comparator<? super C> comparator() {
          return columnComparator();
        }
    
        int compare(Object a, Object b) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * they were inserted into the builder. For example, in the above example, {@code
       * WORD_TO_INT.entrySet()} is guaranteed to iterate over the entries in the order {@code "one"=1,
       * "two"=2, "three"=3}, and {@code keySet()} and {@code values()} respect the same order. If you
       * want a different order, consider using {@link #orderEntriesByValue(Comparator)}, which changes
       * this builder to sort entries by value.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

            keys = result = Multisets.unmodifiableMultiset(delegate.keys());
          }
          return result;
        }
    
        @Override
        public Set<K> keySet() {
          Set<K> result = keySet;
          if (result == null) {
            keySet = result = Collections.unmodifiableSet(delegate.keySet());
          }
          return result;
        }
    
        @Override
        public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Multimaps.java

            keys = result = Multisets.unmodifiableMultiset(delegate.keys());
          }
          return result;
        }
    
        @Override
        public Set<K> keySet() {
          Set<K> result = keySet;
          if (result == null) {
            keySet = result = Collections.unmodifiableSet(delegate.keySet());
          }
          return result;
        }
    
        @Override
        public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86.3K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

            };
    
        ServiceManager manager = new ServiceManager(asList(a));
        manager.startAsync();
        manager.stopAsync();
        manager.awaitStopped(10, MILLISECONDS);
        assertThat(manager.servicesByState().keySet()).containsExactly(Service.State.TERMINATED);
      }
    
      public void testNotifyStoppedAfterFailure() throws TimeoutException {
        Service a =
            new AbstractService() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          Set<K> keySet = new HashSet<>();
          List<Entry<K, V>> builder = new ArrayList<>();
          for (Object o : elements) {
            Entry<?, ?> entry = (Entry<?, ?>) o;
            // These come from Entry<K, Collection<V>>> objects somewhere.
            @SuppressWarnings("unchecked")
            K key = (K) entry.getKey();
            keySet.add(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                            PopulatableMapAsMultimap.create();
                        populateMultimapForKeySet(multimap, elements);
                        return multimap.build().keySet();
                      }
                    })
                .named("Multimaps.forMap.keySet")
                .withFeatures(FOR_MAP_FEATURES_ANY)
                .createTestSuite());
    
        // TODO: use collection testers on Multimaps.forMap.values
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
Back to Top