Class FindWithinGenerator.FindProcedure<T>
java.lang.Object
org.apache.commons.functor.core.algorithm.FindWithinGenerator.FindProcedure<T>
- Type Parameters:
T- the argument type.
- All Implemented Interfaces:
Functor, UnaryFunctor<T>, UnaryProcedure<T>
- Enclosing class:
FindWithinGenerator<E>
private static class FindWithinGenerator.FindProcedure<T>
extends Object
implements UnaryProcedure<T>
Helper procedure.
- Version:
- $Revision$ $Date$
-
Field Details
-
found
The object found, if any. -
wasFound
private boolean wasFoundFlag to mark an object has been found. -
pred
The adapted predicate.
-
-
Constructor Details
-
FindProcedure
Create a new FindProcedure.- Parameters:
pred- the adapted predicate.
-
-
Method Details
-
run
Execute this procedure.- Specified by:
runin interfaceUnaryProcedure<T>- Parameters:
obj- an A parameter to this execution
-