Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for filterKeys (0.07 sec)

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

                        multimap.put("bar", 32);
                        multimap.put("foo", 16);
                        multimap = filterKeys(multimap, not(equalTo("foo")));
                        return filterKeys(multimap, not(equalTo("bar")));
                      }
                    })
                .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

     * See the License for the specific language governing permissions and
     * 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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

      abstract Map<String, Integer> createUnfiltered();
    
      public void testFilteredKeysIllegalPut() {
        Map<String, Integer> unfiltered = createUnfiltered();
        Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3);
        filtered.put("a", 1);
        filtered.put("b", 2);
        assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered);
    
        assertThrows(IllegalArgumentException.class, () -> filtered.put("yyy", 3));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

      abstract Map<String, Integer> createUnfiltered();
    
      public void testFilteredKeysIllegalPut() {
        Map<String, Integer> unfiltered = createUnfiltered();
        Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3);
        filtered.put("a", 1);
        filtered.put("b", 2);
        assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered);
    
        assertThrows(IllegalArgumentException.class, () -> filtered.put("yyy", 3));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(Multimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    class FilteredKeyMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/FilteredKeyMultimap.java

    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(Multimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    class FilteredKeyMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FilteredKeySetMultimap.java

    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(SetMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class FilteredKeySetMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredKeyListMultimap.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(ListMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class FilteredKeyListMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java

    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(SetMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class FilteredKeySetMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

              throw new TimeoutException(
                  "Timeout waiting for the services to become healthy. The "
                      + "following services have not started: "
                      + Multimaps.filterKeys(servicesByState, in(ImmutableSet.of(NEW, STARTING))));
            }
            checkHealthy();
          } finally {
            monitor.leave();
          }
        }
    
        void awaitStopped() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (0)
Back to top