Coverage Summary for Class: FilteredKeyListMultimap (com.google.common.collect)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| FilteredKeyListMultimap | 0% (0/1) | 0% (0/5) | 0% (0/5) |
1 /* 2 * Copyright (C) 2012 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.common.collect; 18 19 import com.google.common.annotations.GwtCompatible; 20 import com.google.common.base.Predicate; 21 import java.util.List; 22 import org.checkerframework.checker.nullness.qual.Nullable; 23 24 /** 25 * Implementation of {@link Multimaps#filterKeys(ListMultimap, Predicate)}. 26 * 27 * @author Louis Wasserman 28 */ 29 @GwtCompatible 30 final class FilteredKeyListMultimap<K, V> extends FilteredKeyMultimap<K, V> 31 implements ListMultimap<K, V> { 32 FilteredKeyListMultimap(ListMultimap<K, V> unfiltered, Predicate<? super K> keyPredicate) { 33 super(unfiltered, keyPredicate); 34 } 35 36 @Override 37 public ListMultimap<K, V> unfiltered() { 38 return (ListMultimap<K, V>) super.unfiltered(); 39 } 40 41 @Override 42 public List<V> get(K key) { 43 return (List<V>) super.get(key); 44 } 45 46 @Override 47 public List<V> removeAll(@Nullable Object key) { 48 return (List<V>) super.removeAll(key); 49 } 50 51 @Override 52 public List<V> replaceValues(K key, Iterable<? extends V> values) { 53 return (List<V>) super.replaceValues(key, values); 54 } 55 }