Class IgnitePredicateX<E1>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.IgnitePredicateX<E1>
-
- All Implemented Interfaces:
Serializable,IgnitePredicate<E1>
- Direct Known Subclasses:
PX1
public abstract class IgnitePredicateX<E1> extends Object implements IgnitePredicate<E1>
Convenient predicate subclass that allows for thrown grid exception. This class implementsapply(Object)method that callsapplyx(Object)method and properly wrapsIgniteCheckedExceptionintoGridClosureExceptioninstance.- See Also:
PX1, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgnitePredicateX()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanapply(E1 e)Predicate body.abstract booleanapplyx(E1 e)Predicate body that can throwIgniteCheckedException.
-
-
-
Method Detail
-
apply
public boolean apply(E1 e)
Predicate body.- Specified by:
applyin interfaceIgnitePredicate<E1>- Parameters:
e- Predicate parameter.- Returns:
- Return value.
-
applyx
public abstract boolean applyx(E1 e) throws IgniteCheckedException
Predicate body that can throwIgniteCheckedException.- Parameters:
e- Bound free variable, i.e. the element the predicate is called or closed on.- Returns:
- Return value.
- Throws:
IgniteCheckedException- Thrown in case of any error condition inside of the predicate.
-
-