Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 464 for entrySet (0.09 seconds)

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

        @LazyInit private transient @Nullable Set<Entry<K, V>> entrySet;
    
        @Override
        public Set<Entry<K, V>> entrySet() {
          Set<Entry<K, V>> result = entrySet;
          return (result == null) ? entrySet = createEntrySet() : result;
        }
    
        @LazyInit private transient @Nullable Set<K> keySet;
    
        @Override
        public Set<K> keySet() {
          Set<K> result = keySet;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      Iterator<E> elementIterator() {
        throw new AssertionError("should never be called");
      }
    
      /**
       * @deprecated Internal method, use {@link #entrySet()}.
       */
      @Deprecated
      @Override
      public Set<Multiset.Entry<E>> createEntrySet() {
        return new EntrySet();
      }
    
      @Override
      int distinctElements() {
        return countMap.size();
      }
    
      @Override
      public boolean isEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/MutableClassToInstanceMap.java

          }
        };
      }
    
      @Override
      public Set<Entry<Class<? extends @NonNull B>, B>> entrySet() {
        return new ForwardingSet<Entry<Class<? extends @NonNull B>, B>>() {
    
          @Override
          protected Set<Entry<Class<? extends @NonNull B>, B>> delegate() {
            return MutableClassToInstanceMap.this.delegate().entrySet();
          }
    
          @Override
          @GwtIncompatible // Spliterator
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Multiset.java

       * efficient than iterating over the {@link #entrySet()} either explicitly or with {@code
       * entrySet().forEach(action)}.
       *
       * @since 21.0
       */
      default void forEachEntry(ObjIntConsumer<? super E> action) {
        checkNotNull(action);
        entrySet().forEach(entry -> action.accept(entry.getElement(), entry.getCount()));
      }
    
      // Comparison and hashing
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 20.9K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        return (vs != null) ? vs : (values = new Values(this));
      }
    
      @Nullable Set<Entry<K, V>> entrySet = null;
    
      @Override
      public Set<Entry<K, V>> entrySet() {
        // does not impact recency ordering
        Set<Entry<K, V>> es = entrySet;
        return (es != null) ? es : (entrySet = new EntrySet(this));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

       * href="https://github.com/openjdk/jdk/blob/c25c4896ad9ef031e3cddec493aef66ff87c48a7/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java#L4830">{@code
       * ConcurrentHashMap} support for {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getAddAllUnsupportedNonePresentMethod() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

        assertFalse(getMap().entrySet().iterator().hasNext());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              getMap().clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          assertThat(cache.asMap().keySet()).isEqualTo(ImmutableSet.of(key1, key2));
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertThat(cache.asMap().entrySet())
              .containsExactly(immutableEntry(key1, value1), immutableEntry(key2, value2));
        }
      }
    
      public void testInvalidate() {
        for (LoadingCache<Key, String> cache : caches()) {
    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)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
        assertContainsAllOf(keys, k0(), k1());
        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testKeysCountAbsentNullKey() {
        assertEquals(0, multimap().keys().count(null));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4.3K bytes
    - Click Count (1)
  10. src/main/java/org/codelibs/fess/util/DocMap.java

         */
        @Override
        public Set<java.util.Map.Entry<String, Object>> entrySet() {
            if (parent.containsKey(LANG_KEY)) {
                final List<java.util.Map.Entry<String, Object>> list = new ArrayList<>(parent.entrySet());
                Collections.sort(list, (o1, o2) -> {
                    final String k1 = o1.getKey();
                    if (LANG_KEY.equals(k1)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.7K bytes
    - Click Count (0)
Back to Top