Class Predicates.ThrowablePredicate<T>
- java.lang.Object
- 
- com.oracle.coherence.concurrent.executor.function.Predicates.ThrowablePredicate<T>
 
- 
- Type Parameters:
- T- the type of the- Resultbeing tested
 - All Implemented Interfaces:
- PortablePredicate<Result<T>>,- PortableObject,- 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 SummaryFields Modifier and Type Field Description protected Throwablem_throwableTheThrowable.
 - 
Constructor SummaryConstructors Constructor Description ThrowablePredicate()Constructs aPredicates.ThrowablePredicate, without caring for the type ofThrowable.ThrowablePredicate(Throwable throwable)Constructs aPredicates.ThrowablePredicate.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object.booleantest(Result<T> result)voidwriteExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.tangosol.util.function.Remote.Predicateand, negate, or
 
- 
 
- 
- 
- 
Constructor Detail- 
ThrowablePredicatepublic ThrowablePredicate() Constructs aPredicates.ThrowablePredicate, without caring for the type ofThrowable.
 - 
ThrowablePredicatepublic ThrowablePredicate(Throwable throwable) Constructs aPredicates.ThrowablePredicate.- Parameters:
- throwable- the- Throwableto compare with
 
 
- 
 - 
Method Detail- 
readExternalpublic void readExternal(PofReader in) throws IOException Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
- readExternalin interface- PortableObject
- Specified by:
- readExternalin interface- PortablePredicate<T>
- Parameters:
- in- the PofReader from which to read the object's state
- Throws:
- IOException- if an I/O error occurs
 
 - 
writeExternalpublic void writeExternal(PofWriter out) throws IOException Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
- writeExternalin interface- PortableObject
- Specified by:
- writeExternalin interface- PortablePredicate<T>
- Parameters:
- out- the PofWriter to which to write the object's state
- Throws:
- IOException- if an I/O error occurs
 
 
- 
 
-