Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFilterKeys (0.7 sec)

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

        unfiltered.put("badkey", 1);
        return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE);
      }
    
      private static final Predicate<String> KEY_PREDICATE = key -> !Objects.equals(key, "badkey");
    
      public void testFilterKeys() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        Multimap<String, Integer> filtered = filterKeys(unfiltered, KEY_PREDICATE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top