org.gridgain.grid.lang
Class GridPredicate2X<E1,E2>
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridPredicate2<E1,E2>
org.gridgain.grid.lang.GridPredicate2X<E1,E2>
- All Implemented Interfaces:
- Serializable, Cloneable, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- PX2
public abstract class GridPredicate2X<E1,E2>
- extends GridPredicate2<E1,E2>
Convenient predicate subclass that allows for thrown grid exception. This class
implements GridPredicate2X.apply(Object, Object) method that calls GridPredicate2X.applyx(Object, Object)
method and properly wraps GridException into GridClosureException instance.
- See Also:
PX2,
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 |
GridPredicate2X
public GridPredicate2X()
apply
public boolean apply(E1 e1,
E2 e2)
- Predicate body.
- Specified by:
apply in class GridPredicate2<E1,E2>
- Parameters:
e1 - First bound free variable, i.e. the element the closure is called or closed on.e2 - Second bound free variable, i.e. the element the closure is called or closed on.
- Returns:
- Return value.
applyx
public abstract boolean applyx(E1 e1,
E2 e2)
throws GridException
- Predicate body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the predicate.- Parameters:
e1 - First bound free variable, i.e. the element the predicate is called or closed on.e2 - Second bound free variable, i.e. the element the predicate is called or closed on.
- Returns:
- Return value.