Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 305 for entrySet (0.05 seconds)

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

        public SampleElements<Entry<K, V>> samples() {
          return mapGenerator.samples();
        }
    
        @Override
        public Set<Entry<K, V>> create(Object... elements) {
          return mapGenerator.create(elements).entrySet();
        }
    
        @Override
        public Entry<K, V>[] createArray(int length) {
          return mapGenerator.createArray(length);
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization_entrySet() {
        Multiset<String> c = ImmutableMultiset.of("a", "b", "c");
        SerializableTester.reserializeAndAssert(c.entrySet());
      }
    
      public void testEquals_immutableMultiset() {
        new EqualsTester()
            .addEqualityGroup(
                ImmutableMultiset.of("a", "b", "a"),
                ImmutableMultiset.of("a", "b", "a"),
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker.advance(500, MILLISECONDS);
        cache.put(20, 22);
        cache.put(5, 10);
    
        fakeTicker.advance(501, MILLISECONDS);
    
        int sum = 0;
        for (Entry<Integer, Integer> current : cache.asMap().entrySet()) {
          sum += current.getKey() + current.getValue();
        }
        assertThat(sum).isEqualTo(57);
      }
    
      @Test
      public void asMapValues_iteratorRemove() {
        Cache<Integer, Integer> cache =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

      }
    
      public void testSerialization_entrySet() {
        Multiset<String> c = ImmutableSortedMultiset.of("a", "b", "c");
        SerializableTester.reserializeAndAssert(c.entrySet());
      }
    
      public void testEquals_immutableMultiset() {
        Collection<String> c = ImmutableSortedMultiset.of("a", "b", "a");
        assertEquals(c, ImmutableSortedMultiset.of("a", "b", "a"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // add a single unexpired entry
        cache.getUnchecked(KEY_PREFIX + 11);
    
        // collections views shouldn't expose expired entries
        assertThat(Iterators.size(cache.asMap().entrySet().iterator())).isEqualTo(1);
        assertThat(Iterators.size(cache.asMap().keySet().iterator())).isEqualTo(1);
        assertThat(Iterators.size(cache.asMap().values().iterator())).isEqualTo(1);
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap =
                            Multimaps.filterEntries(
                                multimap,
                                not(Predicates.in(ImmutableMap.of("one", 159, "two", 265).entrySet())));
                        return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar"))));
                      }
                    })
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            properties.load(new ByteArrayInputStream(baos.toByteArray()));
            Object o22 = properties.get(KEY1);
            assertEquals(VALUE1, o22);
            for (Map.Entry<String, String> entry : properties.entrySet()) {
                entry.setValue(entry.getValue() + "x");
            }
            Object o21 = properties.get(KEY1);
            assertEquals(VALUE1 + "x", o21);
    
            baos = new ByteArrayOutputStream();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 16.4K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

      }
    
      // Would use Maps.immutableEntry
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      private static boolean isEmpty(Iterable<?> iterable) {
        return iterable instanceof Collection
            ? ((Collection<?>) iterable).isEmpty()
            : !iterable.iterator().hasNext();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

            return request.getProfiles().stream()
                    .filter(profile -> activeProfileId.contains(profile.getId()))
                    .map(ModelBase::getProperties)
                    .flatMap(properties -> properties.entrySet().stream())
                    .filter(e -> e.getValue() != null)
                    .collect(Collectors.toMap(
                            e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue()), (k1, k2) -> k2));
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 05:56:35 GMT 2025
    - 25.8K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java

                }
            }
    
            private void visit(Properties properties) {
                if (properties != null) {
                    for (Map.Entry<Object, Object> entry : properties.entrySet()) {
                        Object v = entry.getValue();
                        if (v instanceof String value) {
                            String inter = interpolate(value);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 43.1K bytes
    - Click Count (0)
Back to Top