Class Predicates.ThrowablePredicate<T>
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.function.Predicates.ThrowablePredicate<T>
-
- Type Parameters:
T- the type of theResultbeing tested
- All Implemented Interfaces:
PortablePredicate<Result<T>>,com.tangosol.io.pof.PortableObject,com.tangosol.util.function.Remote.Predicate<Result<T>>,Serializable,Predicate<Result<T>>
- Enclosing class:
- Predicates
public static class Predicates.ThrowablePredicate<T> extends Object implements PortablePredicate<Result<T>>
AnPredicates.ThrowablePredicatereturns true when a providedResult.isThrowable().- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwablem_throwableTheThrowable.
-
Constructor Summary
Constructors Constructor Description ThrowablePredicate()Constructs aPredicates.ThrowablePredicate, without caring for the type ofThrowable.ThrowablePredicate(Throwable throwable)Constructs aPredicates.ThrowablePredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(com.tangosol.io.pof.PofReader in)booleantest(Result<T> result)voidwriteExternal(com.tangosol.io.pof.PofWriter out)
-
-
-
Constructor Detail
-
ThrowablePredicate
public ThrowablePredicate()
Constructs aPredicates.ThrowablePredicate, without caring for the type ofThrowable.
-
ThrowablePredicate
public ThrowablePredicate(Throwable throwable)
Constructs aPredicates.ThrowablePredicate.- Parameters:
throwable- theThrowableto compare with
-
-
Method Detail
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Specified by:
readExternalin interfacePortablePredicate<T>- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Specified by:
writeExternalin interfacePortablePredicate<T>- Throws:
IOException
-
-