Class Predicates.AlwaysPredicate
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.function.Predicates.AlwaysPredicate
-
- All Implemented Interfaces:
PortablePredicate
,PortableObject
,Remote.Predicate
,Serializable
,Predicate
- Enclosing class:
- Predicates
public static class Predicates.AlwaysPredicate extends Object implements PortablePredicate
AnPredicates.AlwaysPredicate
returns true for any value provided to thePredicate.test(Object)
method.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static Predicates.AlwaysPredicate
INSTANCE
A constant for thePredicates.AlwaysPredicate
.
-
Constructor Summary
Constructors Constructor Description AlwaysPredicate()
Constructs aPredicates.AlwaysPredicate
(required for serialization).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Remote.Predicate<T>
get()
Obtains an instance of thePredicates.AlwaysPredicate
.boolean
test(Object o)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.coherence.concurrent.executor.function.PortablePredicate
readExternal, writeExternal
-
Methods inherited from interface com.tangosol.util.function.Remote.Predicate
and, negate, or
-
-
-
-
Field Detail
-
INSTANCE
protected static final Predicates.AlwaysPredicate INSTANCE
A constant for thePredicates.AlwaysPredicate
.
-
-
Constructor Detail
-
AlwaysPredicate
public AlwaysPredicate()
Constructs aPredicates.AlwaysPredicate
(required for serialization).
-
-
Method Detail
-
get
public static <T> Remote.Predicate<T> get()
Obtains an instance of thePredicates.AlwaysPredicate
.- Type Parameters:
T
- the type of the input to the predicate- Returns:
- an
Predicates.AlwaysPredicate
-
-