Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for fromMap (0.11 sec)

  1. guava/src/com/google/common/collect/Maps.java

        protected SortedMap<K, V1> fromMap() {
          return (SortedMap<K, V1>) fromMap;
        }
    
        TransformedEntriesSortedMap(
            SortedMap<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer) {
          super(fromMap, transformer);
        }
    
        @Override
        @CheckForNull
        public Comparator<? super K> comparator() {
          return fromMap().comparator();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

        protected SortedMap<K, V1> fromMap() {
          return (SortedMap<K, V1>) fromMap;
        }
    
        TransformedEntriesSortedMap(
            SortedMap<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer) {
          super(fromMap, transformer);
        }
    
        @Override
        @CheckForNull
        public Comparator<? super K> comparator() {
          return fromMap().comparator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

              K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object>
          Multimap<K, V2> transformEntries(
              Multimap<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer) {
        return new TransformedEntriesMultimap<>(fromMap, transformer);
      }
    
      /**
       * Returns a view of a {@code ListMultimap} whose values are derived from the original multimap's
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        return multimap.build().keySet();
                      }
                    })
                .named("Multimaps.forMap.keySet")
                .withFeatures(FOR_MAP_FEATURES_ANY)
                .createTestSuite());
    
        // TODO: use collection testers on Multimaps.forMap.values
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        return multimap.build().keySet();
                      }
                    })
                .named("Multimaps.forMap.keySet")
                .withFeatures(FOR_MAP_FEATURES_ANY)
                .createTestSuite());
    
        // TODO: use collection testers on Multimaps.forMap.values
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        SerializableTester.reserializeAndAssert(multimapView);
      }
    
      public void testForMapRemoveAll() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
        Multimap<String, Integer> multimap = Multimaps.forMap(map);
        assertEquals(3, multimap.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            for (int i = 0; i < objectsNum; i++) {
              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            for (int i = 0; i < objectsNum; i++) {
              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top