|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableOperator<T>
This interface contains methods for executing functions.
Method Summary | ||
---|---|---|
|
exec(IFunction<? super T,X> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution. |
|
ExecutableOperator<T> |
execIfFalse(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalse(IFunction<? super T,Boolean> eval,
IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableOperator<T> |
execIfNotNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNotNull(IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableOperator<T> |
execIfNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNull(IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableOperator<T> |
execIfTrue(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrue(IFunction<? super T,Boolean> eval,
IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
Method Detail |
---|
<X> ExecutableOperator<X> exec(IFunction<? super T,X> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution.
This function must be able to take as input an object of type T (the current operator's target type) and will return an object of type X, which will be from then on the new operator's target type.
X
- the type of the result, and new type for the operatorfunction
- the function to be executed
ExecutableOperator<T> execIfNotNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableOperator<T> execIfNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableOperator<T> execIfTrue(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
ExecutableOperator<T> execIfFalse(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
<X> ExecutableOperator<X> execIfNotNull(IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X> ExecutableOperator<X> execIfNull(IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X> ExecutableOperator<X> execIfTrue(IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionseval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X> ExecutableOperator<X> execIfFalse(IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Executes a function in a way equivalent to exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionseval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |