Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for AsMap (0.66 sec)

  1. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        return new AsMap();
      }
    
      @Override
      Set<K> createKeySet() {
        return asMap().keySet();
      }
    
      boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) {
        Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMultimap.java

        return Maps.valueIterator(entries().iterator());
      }
    
      @LazyInit private transient @Nullable Map<K, Collection<V>> asMap;
    
      @Override
      public Map<K, Collection<V>> asMap() {
        Map<K, Collection<V>> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      abstract Map<K, Collection<V>> createAsMap();
    
      // Comparison and hashing
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          cache.invalidate(key1);
          assertFalse(cache.asMap().containsKey(key1));
          assertTrue(cache.asMap().containsKey(key2));
          assertEquals(1, cache.size());
          assertEquals(ImmutableSet.of(key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).contains(value2);
          assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          try {
            multimap.asMap().get(presentKey).remove(sampleValue);
            fail("asMap().get().remove() succeeded on unmodifiable multimap");
          } catch (UnsupportedOperationException expected) {
          }
          assertMultimapRemainsUnmodified(multimap, originalEntries);
    
          try {
            multimap.asMap().values().iterator().next().remove(sampleValue);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        return new AsMap();
      }
    
      @Override
      Set<K> createKeySet() {
        return asMap().keySet();
      }
    
      boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) {
        Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        assertEquals(1, Iterators.size(cache.asMap().entrySet().iterator()));
        assertEquals(1, Iterators.size(cache.asMap().keySet().iterator()));
        assertEquals(1, Iterators.size(cache.asMap().values().iterator()));
    
        CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker);
    
        for (int i = 0; i < 11; i++) {
          assertFalse(cache.asMap().containsKey(KEY_PREFIX + i));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      public void testTreeMultimapAsMapSorted() {
        TreeMultimap<String, Integer> multimap = createPopulate();
        SortedMap<String, Collection<Integer>> asMap = multimap.asMap();
        assertEquals(Ordering.natural(), asMap.comparator());
        assertEquals("foo", asMap.firstKey());
        assertEquals("tree", asMap.lastKey());
        Set<Integer> fooValues = ImmutableSet.of(1, 3, 7);
        Set<Integer> googleValues = ImmutableSet.of(2, 6);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/DataStoreParamsTest.java

            assertFalse(newParams.containsKey("key4"));
        }
    
        // Test asMap
        public void test_asMap() {
            dataStoreParams.put("key1", "value1");
            dataStoreParams.put("key2", 123);
            dataStoreParams.put("key3", null);
    
            Map<String, Object> map = dataStoreParams.asMap();
    
            assertNotNull(map);
            assertEquals(3, map.size());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

      }
    
      /**
       * Returns {@link SetMultimap#asMap multimap.asMap()}, with its type corrected from {@code Map<K,
       * Collection<V>>} to {@code Map<K, Set<V>>}.
       *
       * @since 15.0
       */
      @SuppressWarnings("unchecked")
      // safe by specification of SetMultimap.asMap()
      public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Multimaps.java

      }
    
      /**
       * Returns {@link SetMultimap#asMap multimap.asMap()}, with its type corrected from {@code Map<K,
       * Collection<V>>} to {@code Map<K, Set<V>>}.
       *
       * @since 15.0
       */
      @SuppressWarnings("unchecked")
      // safe by specification of SetMultimap.asMap()
      public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
Back to top