A - the argument type.public final class PredicateUnaryPredicate<A> extends Object implements UnaryPredicate<A>, Serializable
Predicate
to the
UnaryPredicate interface
by ignoring the given argument.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
PredicateUnaryPredicate(Predicate predicate)
Create a new PredicateUnaryPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <A> PredicateUnaryPredicate<A> |
adapt(Predicate predicate)
Adapt a Predicate to the UnaryPredicate interface.
|
boolean |
equals(Object that) |
boolean |
equals(PredicateUnaryPredicate<?> that)
Learn whether a given PredicateUnaryPredicate is equal to this.
|
int |
hashCode() |
boolean |
test(Object obj)
Evaluate this predicate.
|
String |
toString() |
public PredicateUnaryPredicate(Predicate predicate)
predicate - to adaptpublic boolean test(Object obj)
test in interface UnaryPredicate<A>obj - the A object to testpublic boolean equals(PredicateUnaryPredicate<?> that)
that - PredicateUnaryPredicate to testpublic static <A> PredicateUnaryPredicate<A> adapt(Predicate predicate)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.