T
- the type of the input to the predicate.public interface Predicate<T>
OptionalFilter
. Could be used as functional
interface in Java 8.Modifier and Type | Method and Description |
---|---|
boolean |
test(T object)
Evaluates the predicate on the given object.
|
boolean test(T object)
object
- the input objecttrue
if the object matches the predicate, otherwise false
Copyright © 2014–2015. All rights reserved.