Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 141 for asMap (0.02 sec)

  1. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        return createMultimap().asMap().subMap("e", "p");
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
        multimap.put("f", 1);
        multimap.put("f", 2);
        multimap.put("g", 3);
        multimap.put("h", 4);
        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/SortedSetMultimap.java

       *
       * <p>When passed a key that is present in the map, {@code asMap().get(Object)} has the same
       * behavior as {@link #get}, returning a live collection. When passed a key that is not present,
       * however, {@code asMap().get(Object)} returns {@code null} instead of an empty collection.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

       *
       * <p>When passed a key that is present in the map, {@code asMap().get(Object)} has the same
       * behavior as {@link #get}, returning a live collection. When passed a key that is not present,
       * however, {@code asMap().get(Object)} returns {@code null} instead of an empty collection.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          sum = sum + value.get();
        }
        return sum;
      }
    
      @LazyInit @CheckForNull private transient Map<K, Long> asMap;
    
      /** 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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ListMultimap.java

       * this map with the more specific generic type {@code Map<K, List<V>>}, call {@link
       * Multimaps#asMap(ListMultimap)} instead.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Compares the specified object to this multimap for equality.
       *
       * <p>Two {@code ListMultimap} instances are equal if, for each key, they contain the same values
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ListMultimap.java

       * this map with the more specific generic type {@code Map<K, List<V>>}, call {@link
       * Multimaps#asMap(ListMultimap)} instead.
       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Compares the specified object to this multimap for equality.
       *
       * <p>Two {@code ListMultimap} instances are equal if, for each key, they contain the same values
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

        assertTrue(multimap.asMap() instanceof SortedMap);
      }
    
      public void testTreeKeys_gwtCompatible() {
        ListMultimap<String, Integer> multimap =
            rawtypeToWildcard(MultimapBuilder.treeKeys()).arrayListValues().<String, Integer>build();
        assertTrue(multimap.keySet() instanceof SortedSet);
        assertTrue(multimap.asMap() instanceof SortedMap);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Serialization.java

      static <K extends @Nullable Object, V extends @Nullable Object> void writeMultimap(
          Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException {
        stream.writeInt(multimap.asMap().size());
        for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) {
          stream.writeObject(entry.getKey());
          stream.writeInt(entry.getValue().size());
          for (V value : entry.getValue()) {
            stream.writeObject(value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java

        extends AbstractSortedSetMultimap<K, V> {
    
      AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) {
        super(map);
      }
    
      @Override
      public SortedMap<K, Collection<V>> asMap() {
        return (SortedMap<K, Collection<V>>) super.asMap();
      }
    
      @Override
      SortedMap<K, Collection<V>> backingMap() {
        return (SortedMap<K, Collection<V>>) super.backingMap();
      }
    
      @Override
      public SortedSet<K> keySet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top