|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableSetOperator<T>
This interface contains methods for executing functions on operators with set entry target objects.
Method Summary | ||
---|---|---|
|
exec(IFunction<? super Set<T>,X> function)
Executes the specified function on the target set, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified. |
|
|
execAsSet(IFunction<? super Set<T>,? extends Set<X>> function)
Executes the specified function on the target set, creating a new set operator containing the result of the execution. |
|
ExecutableSetOperator<T> |
execIfFalseAsSet(IFunction<? super Set<T>,Boolean> eval,
IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalseAsSet(IFunction<? super Set<T>,Boolean> eval,
IFunction<? super Set<T>,? extends Set<X>> function,
IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableSetOperator<T> |
execIfNotNullAsSet(IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNotNullAsSet(IFunction<? super Set<T>,? extends Set<X>> function,
IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableSetOperator<T> |
execIfNullAsSet(IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNullAsSet(IFunction<? super Set<T>,? extends Set<X>> function,
IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableSetOperator<T> |
execIfTrueAsSet(IFunction<? super Set<T>,Boolean> eval,
IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrueAsSet(IFunction<? super Set<T>,Boolean> eval,
IFunction<? super Set<T>,? extends Set<X>> function,
IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(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 operator containing the result of all the executions and setting the new operator type to the one resulting from the function execution. |
|
ExecutableSetOperator<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. |
|
ExecutableSetOperator<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. |
|
ExecutableSetOperator<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. |
|
ExecutableSetOperator<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> ExecutableSetOperator<X> execAsSet(IFunction<? super Set<T>,? extends Set<X>> function)
Executes the specified function on the target set, creating a new set operator containing the result of the execution.
This function must be able to take as input an object of the current operator's target type, and will return an object of a different type but same structure, which will be from then on the new operator's target type.
X
- the type of the result elementsfunction
- the function to be executed
ExecutableSetOperator<T> execIfNotNullAsSet(IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableSetOperator<T> execIfNullAsSet(IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableSetOperator<T> execIfTrueAsSet(IFunction<? super Set<T>,Boolean> eval, IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(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
ExecutableSetOperator<T> execIfFalseAsSet(IFunction<? super Set<T>,Boolean> eval, IFunction<? super Set<T>,? extends Set<? extends T>> function)
Executes a function in a way equivalent to execAsSet(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> ExecutableSetOperator<X> execIfNotNullAsSet(IFunction<? super Set<T>,? extends Set<X>> function, IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(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> ExecutableSetOperator<X> execIfNullAsSet(IFunction<? super Set<T>,? extends Set<X>> function, IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(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> ExecutableSetOperator<X> execIfTrueAsSet(IFunction<? super Set<T>,Boolean> eval, IFunction<? super Set<T>,? extends Set<X>> function, IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(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> ExecutableSetOperator<X> execIfFalseAsSet(IFunction<? super Set<T>,Boolean> eval, IFunction<? super Set<T>,? extends Set<X>> function, IFunction<? super Set<T>,? extends Set<X>> elseFunction)
Executes a function in a way equivalent to execAsSet(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 Set<T>,X> function)
Executes the specified function on the target set, 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> ExecutableSetOperator<X> map(IFunction<? super T,X> function)
Executes the specified function on each of the elements, creating a new 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
ExecutableSetOperator<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
ExecutableSetOperator<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
ExecutableSetOperator<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
ExecutableSetOperator<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> ExecutableSetOperator<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> ExecutableSetOperator<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> ExecutableSetOperator<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> ExecutableSetOperator<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 |