Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 267 for keySet (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithKeySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<K> iterator = getMap().keySet().iterator();
              getMap().clear();
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        Multimap<String, Integer> filtered = filterValues(keyFiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertTrue(filtered.containsEntry("foo", 1));
        assertTrue(filtered.keySet().retainAll(asList("cat", "dog")));
        assertEquals(0, filtered.size());
      }
    
      // TODO(jlevy): Many more tests needed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/DenseImmutableTable.java

          return size == keyToIndex().size();
        }
    
        K getKey(int index) {
          return keyToIndex().keySet().asList().get(index);
        }
    
        @CheckForNull
        abstract V getValue(int keyIndex);
    
        @Override
        ImmutableSet<K> createKeySet() {
          return isFull() ? keyToIndex().keySet() : super.createKeySet();
        }
    
        @Override
        public int size() {
          return size;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            // Remove "removed" properties from the cfg file
            for (String key : new ArrayList<String>(this.keySet())) {
                if (!properties.containsKey(key)) {
                    this.remove(key);
                    modified = true;
                }
            }
            // Update existing keys
            for (String key : properties.keySet()) {
                String v = this.get(key);
                List<String> comments = properties.getComments(key);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

                    value = e.getValue().toString();
                }
                itemList.add(createItem(k, value));
            });
            if (fessConfig instanceof final ObjectiveConfig config) {
                config.keySet().stream().forEach(k -> {
                    final String value;
                    if (isMaskedValue(k)) {
                        value = MASKED_VALUE;
                    } else {
                        value = config.get(k);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        Multimap<String, Integer> filtered = filterValues(keyFiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertTrue(filtered.containsEntry("foo", 1));
        assertTrue(filtered.keySet().retainAll(asList("cat", "dog")));
        assertEquals(0, filtered.size());
      }
    
      // TODO(jlevy): Many more tests needed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

        Map<String, Integer> map = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
        SerializableTester.reserializeAndAssert(map.entrySet());
        SerializableTester.reserializeAndAssert(map.keySet());
        assertEquals(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

        Map<String, Integer> map = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
        SerializableTester.reserializeAndAssert(map.entrySet());
        SerializableTester.reserializeAndAssert(map.keySet());
        assertEquals(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

        this.delegate = delegate;
        checkArgument(!delegate.isEmpty());
      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return delegate.containsKey(key);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java

    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top