|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableListOperator<T>
This interface contains methods for executing functions on operators with list target objects.
Method Summary | ||
---|---|---|
|
exec(IFunction<? super List<T>,X> function)
Executes the specified function on the target list, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified. |
|
|
execAsList(IFunction<? super List<T>,? extends List<X>> function)
Executes the specified function on the target object, creating a new list operator containing the result of the execution. |
|
ExecutableListOperator<T> |
execIfFalseAsList(IFunction<? super List<T>,Boolean> eval,
IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalseAsList(IFunction<? super List<T>,Boolean> eval,
IFunction<? super List<T>,? extends List<X>> function,
IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
execIfNotNullAsList(IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNotNullAsList(IFunction<? super List<T>,? extends List<X>> function,
IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
execIfNullAsList(IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNullAsList(IFunction<? super List<T>,? extends List<X>> function,
IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
execIfTrueAsList(IFunction<? super List<T>,Boolean> eval,
IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrueAsList(IFunction<? super List<T>,Boolean> eval,
IFunction<? super List<T>,? extends List<X>> function,
IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
map(IFunction<? super T,X> function)
Executes the specified function on each of the elements, creating a new list operator containing the result of all the executions and setting the new operator type to the one resulting from the function execution. |
|
ExecutableListOperator<T> |
mapIfFalse(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
mapIfFalse(IFunction<? super T,Boolean> eval,
IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
mapIfNotNull(IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
mapIfNotNull(IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
mapIfNull(IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
mapIfNull(IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableListOperator<T> |
mapIfTrue(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
mapIfTrue(IFunction<? super T,Boolean> eval,
IFunction<? super T,X> function,
IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(IFunction) but only
on selected elements, leaving all other elements untouched. |
Method Detail |
---|
<X> ExecutableListOperator<X> execAsList(IFunction<? super List<T>,? extends List<X>> function)
Executes the specified function on the target object, creating a new list operator containing the result of the execution.
This function must be able to take as input a list of the current operator's target type, and can return a list of a different type, which will be from then on the new operator's target type.
X
- the type of the result elementsfunction
- the function to be executed
ExecutableListOperator<T> execIfNotNullAsList(IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableListOperator<T> execIfNullAsList(IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableListOperator<T> execIfTrueAsList(IFunction<? super List<T>,Boolean> eval, IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(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
ExecutableListOperator<T> execIfFalseAsList(IFunction<? super List<T>,Boolean> eval, IFunction<? super List<T>,? extends List<? extends T>> function)
Executes a function in a way equivalent to execAsList(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> ExecutableListOperator<X> execIfNotNullAsList(IFunction<? super List<T>,? extends List<X>> function, IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(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> ExecutableListOperator<X> execIfNullAsList(IFunction<? super List<T>,? extends List<X>> function, IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(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> ExecutableListOperator<X> execIfTrueAsList(IFunction<? super List<T>,Boolean> eval, IFunction<? super List<T>,? extends List<X>> function, IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(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> ExecutableListOperator<X> execIfFalseAsList(IFunction<? super List<T>,Boolean> eval, IFunction<? super List<T>,? extends List<X>> function, IFunction<? super List<T>,? extends List<X>> elseFunction)
Executes a function in a way equivalent to execAsList(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> Operator exec(IFunction<? super List<T>,X> function)
Executes the specified function on the target list, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified.
X
- the type of the result objectfunction
- the function to be executed
<X> ExecutableListOperator<X> map(IFunction<? super T,X> function)
Executes the specified function on each of the elements, creating a new list operator containing the result of all the executions and setting the new operator type to the one resulting from the function execution.
This method is equivalent to forEach().exec(function).endFor().
X
- the type of the result elementsfunction
- the function to be executed
ExecutableListOperator<T> mapIfNotNull(IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableListOperator<T> mapIfNull(IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableListOperator<T> mapIfTrue(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(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
ExecutableListOperator<T> mapIfFalse(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
Maps a function in a way equivalent to map(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> ExecutableListOperator<X> mapIfNotNull(IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(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> ExecutableListOperator<X> mapIfNull(IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(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> ExecutableListOperator<X> mapIfTrue(IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(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> ExecutableListOperator<X> mapIfFalse(IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
Maps a function in a way equivalent to map(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 |