Returns a predicate that always evaluates to false
.
Returns a predicate that always evaluates to true
.
Returns a predicate that evaluates to true
if each of its
components evaluates to true
.
Returns a predicate that evaluates to true
if each of its
components evaluates to true
. The components are evaluated in
order, and evaluation will be "short-circuited" as soon as a false
predicate is found. It defensively copies the array passed in, so future
changes to it won't alter the behavior of this predicate. If
components
is empty, the returned predicate will always evaluate to
true
.
Returns a predicate that evaluates to true
if each of its
components evaluates to true
.
Returns a predicate that evaluates to true
if each of its
components evaluates to true
. The components are evaluated in
order, and evaluation will be "short-circuited" as soon as a false
predicate is found. It defensively copies the array passed in, so future
changes to it won't alter the behavior of this predicate. If
components
is empty, the returned predicate will always evaluate to
true
.
Adds an asJava
method that wraps a Scala function T => Boolean
in
a Guava Predicate[T]
.
Adds an asJava
method that wraps a Scala function T => Boolean
in
a Guava Predicate[T]
.
The returned Guava Predicate[T]
forwards all calls of the apply
method
to the given Scala function T => Boolean
.
the Scala function T => Boolean
to wrap in a Guava Predicate[T]
An object with an asJava
method that returns a Guava Predicate[T]
view of the argument
Adds an asScala
method that wraps a Guava Predicate[T]
in
a Scala function T => Boolean
.
Adds an asScala
method that wraps a Guava Predicate[T]
in
a Scala function T => Boolean
.
The returned Scala function T => Boolean
forwards all calls of the apply
method
to the given Guava Predicate[T]
.
the Guava Predicate[T]
to wrap in a Scala function T => Boolean
An object with an asScala
method that returns a Scala function T => Boolean
view of the argument
Returns a predicate that evaluates to true
if the class being
tested is assignable from the given class.
Returns a predicate that evaluates to true
if the class being
tested is assignable from the given class. The returned predicate
does not allow null inputs.
Returns a predicate that evaluates to true
if the
CharSequence
being tested contains any match for the given
regular expression pattern.
Returns a predicate that evaluates to true
if the
CharSequence
being tested contains any match for the given
regular expression pattern. The test used is equivalent to
pattern.matcher(arg).find()
Returns a predicate that evaluates to true
if the
String
being tested contains any match for the given
regular expression pattern.
Returns a predicate that evaluates to true
if the
String
being tested contains any match for the given
regular expression pattern. The test used is equivalent to
Pattern.compile(pattern).matcher(arg).find()
java.util.regex.PatternSyntaxException
if the pattern is invalid
Returns a predicate that evaluates to true
if the object being
tested equals()
the given target or both are null.
Returns a predicate that evaluates to true
if the object being
tested equals()
the given target or both are null.
Returns a predicate that evaluates to true
if the object reference
being tested is a member of the given collection.
Returns a predicate that evaluates to true
if the object reference
being tested is a member of the given collection. It does not defensively
copy the collection passed in, so future changes to it will alter the
behavior of the predicate.
The test used is equivalent to coll.contains(arg)
Returns a predicate that evaluates to true
if the object reference
being tested is null
.
Returns a predicate that evaluates to true
if the given predicate
evaluates to false
.
Returns a predicate that evaluates to true
if the given predicate
evaluates to false
.
Returns a predicate that evaluates to true
if the object reference
being tested is not null
.
Returns a predicate that evaluates to true
if any one of its
components evaluates to true
.
Returns a predicate that evaluates to true
if any one of its
components evaluates to true
. The components are evaluated in
order, and evaluation will be "short-circuited" as soon as a
true predicate is found. It defensively copies the iterable passed in, so
future changes to it won't alter the behavior of this predicate. If
components
is empty, the returned predicate will always evaluate to
false
.
Returns a predicate that evaluates to true
if any one of its
components evaluates to true
.
Returns a predicate that evaluates to true
if any one of its
components evaluates to true
. The components are evaluated in
order, and evaluation will be "short-circuited" as soon as a
true predicate is found. It defensively copies the iterable passed in, so
future changes to it won't alter the behavior of this predicate. If
components
is empty, the returned predicate will always evaluate to
false
.
Returns a predicate that evaluates to (((x1 xor x2) xor x3) xor x4)...
Returns a predicate that evaluates to (((x1 xor x2) xor x3) xor x4)...
for all elements xi
in the sequence. It defensively copies the iterable
passed in, so future changes to it won't alter the behavior of this predicate.
If components
is empty, the returned predicate will always evaluate
to false
.
Returns a predicate that evaluates to (((x1 xor x2) xor x3) xor x4)...
Returns a predicate that evaluates to (((x1 xor x2) xor x3) xor x4)...
for all elements xi
in the sequence. It defensively copies the iterable
passed in, so future changes to it won't alter the behavior of this predicate.
If components
is empty, the returned predicate will always evaluate
to false
.
Utility functions for the work with Guava
Predicate[T]
Usage example for conversion between Guava and Mango:
0.7