Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createAsMap (0.04 sec)

  1. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      /** Returns a live, read-only view of the map backing this {@code AtomicLongMap}. */
      public Map<K, Long> asMap() {
        Map<K, Long> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      private Map<K, Long> createAsMap() {
        return Collections.unmodifiableMap(map);
      }
    
      /** Returns true if this map contains a mapping for the specified key. */
      public boolean containsKey(Object key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/LinkedListMultimap.java

        }
        return new EntriesImpl();
      }
    
      @Override
      Iterator<Entry<K, V>> entryIterator() {
        throw new AssertionError("should never be called");
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        return new Multimaps.AsMap<>(this);
      }
    
      /**
       * @serialData the number of distinct keys, and then for each distinct key: the first key, the
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 27K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultimap.java

       */
      @Override
      @SuppressWarnings("unchecked") // a widening cast
      public ImmutableMap<K, Collection<V>> asMap() {
        return (ImmutableMap) map;
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        throw new AssertionError("should never be called");
      }
    
      /** Returns an immutable collection of all key-value pairs in the multimap. */
      @Override
      public ImmutableCollection<Entry<K, V>> entries() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       */
      @Override
      @SuppressWarnings("unchecked") // a widening cast
      public ImmutableMap<K, Collection<V>> asMap() {
        return (ImmutableMap) map;
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        throw new AssertionError("should never be called");
      }
    
      /** Returns an immutable collection of all key-value pairs in the multimap. */
      @Override
      public ImmutableCollection<Entry<K, V>> entries() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        checkNotNull(action);
        map.forEach(
            (key, valueCollection) -> valueCollection.forEach(value -> action.accept(key, value)));
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        return new AsMap(map);
      }
    
      final Map<K, Collection<V>> createMaybeNavigableAsMap() {
        if (map instanceof NavigableMap) {
          return new NavigableAsMap((NavigableMap<K, Collection<V>>) map);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
Back to top