Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for filterValues (0.16 sec)

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

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Multimaps.filterKeys;
    import static com.google.common.collect.Multimaps.filterValues;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import junit.framework.TestCase;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Multimaps.filterKeys;
    import static com.google.common.collect.Multimaps.filterValues;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import junit.framework.TestCase;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        assertEquals(ImmutableMap.of(), filtered);
      }
    
      public void testFilteredValuesIllegalPut() {
        Map<String, Integer> unfiltered = createUnfiltered();
        Map<String, Integer> filtered = Maps.filterValues(unfiltered, EVEN);
        filtered.put("a", 2);
        unfiltered.put("b", 4);
        unfiltered.put("c", 5);
        assertEquals(ImmutableMap.of("a", 2, "b", 4), filtered);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

                sortChanges(it.value)
            }
    
            val mismatches = originalChanges.mapValues {
                findMismatches(it.value, sortedChanges[it.key]!!)
            }.filterValues {
                it.isNotEmpty()
            }
    
            if (mismatches.isNotEmpty()) {
                val formattedMismatches = mismatches.mapValues { mismatch ->
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.put("two", 159);
                        multimap.put("one", 265);
                        return filterValues(
                            multimap, not(Predicates.in(ImmutableSet.of(314, 159, 265))));
                      }
                    })
                .named("Multimaps.filterValues[SetMultimap, Predicate]")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

            return apiChangesDirectory.get().asFile.listFiles()
                ?.filter {
                    it.name.endsWith(".json")
                }?.associate {
                    it to it.readAcceptedChanges()
                }?.filterValues {
                    it.acceptedApiChanges != null
                }?.mapValues {
                    it.value.acceptedApiChanges!!
                } ?: emptyMap()
        }
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.put("two", 159);
                        multimap.put("one", 265);
                        return filterValues(
                            multimap, not(Predicates.in(ImmutableSet.of(314, 159, 265))));
                      }
                    })
                .named("Multimaps.filterValues[SetMultimap, Predicate]")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       * Predicates.instanceOf(ArrayList.class)}, which is inconsistent with equals.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> filterValues(
          Map<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
        return filterEntries(unfiltered, Maps.<V>valuePredicateOnEntries(valuePredicate));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

       * Predicates.instanceOf(ArrayList.class)}, which is inconsistent with equals.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> filterValues(
          Map<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
        return filterEntries(unfiltered, Maps.<V>valuePredicateOnEntries(valuePredicate));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IterablesTest.java

                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
      }
    
      // The Maps returned by Maps.filterEntries(), Maps.filterKeys(), and
      // Maps.filterValues() are not tested with removeIf() since Maps are not
      // Iterable.  Those returned by Iterators.filter() and Iterables.filter()
      // are not tested because they are unmodifiable.
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top