|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableArraySelectedOperator<T>
This interface contains methods for executing functions on operators with array target objects on which a selection ("if") has already been done.
Method Summary | |
---|---|
ExecutableArraySelectedOperator<T> |
execAsArray(IFunction<? super T[],? extends T[]> function)
Executes the specified function on the target object, creating a new array operator containing the result of the execution. |
ExecutableArraySelectedOperator<T> |
map(IFunction<? super T,? extends T> function)
Executes the specified function on each of the elements, creating a new array operator containing the result of all the executions. |
Method Detail |
---|
ExecutableArraySelectedOperator<T> execAsArray(IFunction<? super T[],? extends T[]> function)
Executes the specified function on the target object, creating a new array operator containing the result of the execution.
This function does not allow the operator target type to change because a selection ("if") has already been done on the target objects, and this would render the operator inconsistent (some objects would belong to a type and others to another type).
function
- the function to be executed
ExecutableArraySelectedOperator<T> map(IFunction<? super T,? extends T> function)
Executes the specified function on each of the elements, creating a new array operator containing the result of all the executions.
This function does not allow the operator target type to change because a selection ("if") has already been done on the target objects, and this would render the operator inconsistent (some objects would belong to a type and others to another type).
This method is equivalent to forEach().exec(function).endFor().
function
- the function to be executed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |