Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for fromMap (0.07 seconds)

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

        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
        public @Nullable Comparator<? super K> comparator() {
          return fromMap().comparator();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Maps.java

        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
        public @Nullable Comparator<? super K> comparator() {
          return fromMap().comparator();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86K bytes
    - Click Count (0)
  4. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(function.apply("Null")).isNull();
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forMap(map, 42))
            .addEqualityGroup(Functions.forMap(map))
            .addEqualityGroup(Functions.forMap(map, null))
            .addEqualityGroup(Functions.forMap(map, 43))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(function.apply("Null")).isNull();
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forMap(map, 42))
            .addEqualityGroup(Functions.forMap(map))
            .addEqualityGroup(Functions.forMap(map, null))
            .addEqualityGroup(Functions.forMap(map, 43))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Functions.java

          Map<K, V> map) {
        return new FunctionForMapNoDefault<>(map);
      }
    
      /**
       * Returns a function which performs a map lookup with a default value. The function created by
       * this method returns {@code defaultValue} for all inputs that do not belong to the map's key
       * set. See also {@link #forMap(Map)}, which throws an exception in this case.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  8. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

        Map<String, Integer> map = new HashMap<>();
        return Multimaps.forMap(map).asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Map<String, Integer> map = new HashMap<>();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
        return Multimaps.forMap(map).asMap();
      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3K bytes
    - Click Count (0)
  10. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
Back to Top