org.gridgain.grid.lang
Class GridPredicateX<E1>
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridPredicate<E1>
org.gridgain.grid.lang.GridPredicateX<E1>
- All Implemented Interfaces:
- Serializable, Cloneable, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- PX1
public abstract class GridPredicateX<E1>
- extends GridPredicate<E1>
Convenient predicate subclass that allows for thrown grid exception. This class
implements GridPredicateX.apply(Object) method that calls GridPredicateX.applyx(Object) method
and properly wraps GridException into GridClosureException instance.
- See Also:
PX1,
Serialized Form
-

| Methods inherited from class org.gridgain.grid.lang.GridMetadataAwareAdapter |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMeta |
| Methods inherited from interface org.gridgain.grid.GridMetadataAware |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta |
GridPredicateX
public GridPredicateX()
apply
public boolean apply(E1 e)
- Predicate body.
- Specified by:
apply in class GridPredicate<E1>
- Parameters:
e - Bound free variable, i.e. the element the closure is called or closed on.
- Returns:
- Return value.
applyx
public abstract boolean applyx(E1 e)
throws GridException
- Predicate body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the predicate.- Parameters:
e - Bound free variable, i.e. the element the predicate is called or closed on.
- Returns:
- Return value.