Package com.google.common.collect
Class FilteredEntryMultimap.ValuePredicate
- java.lang.Object
-
- com.google.common.collect.FilteredEntryMultimap.ValuePredicate
-
- All Implemented Interfaces:
Predicate<V>
,java.util.function.Predicate<V>
- Enclosing class:
- FilteredEntryMultimap<K,V>
final class FilteredEntryMultimap.ValuePredicate extends java.lang.Object implements Predicate<V>
-
-
Constructor Summary
Constructors Constructor Description ValuePredicate(K key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(V value)
Returns the result of applying this predicate toinput
(Java 8 users, see notes in the class documentation above).
-
-
-
Field Detail
-
key
private final K key
-
-
Constructor Detail
-
ValuePredicate
ValuePredicate(K key)
-
-
Method Detail
-
apply
public boolean apply(V value)
Description copied from interface:Predicate
Returns the result of applying this predicate toinput
(Java 8 users, see notes in the class documentation above). This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatpredicate.apply(a) == predicate.apply(b))
.
-
-