|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableArrayOperator<T>
This interface contains methods for executing functions on operators with array target objects.
Method Summary | ||
---|---|---|
|
exec(IFunction<? super T[],X> function)
Executes the specified function on the target object, creating a new generic operator containing the result of the execution and setting the new operator type to the one specified. |
|
ExecutableArrayOperator<T> |
execAsArray(IFunction<? super T[],? extends T[]> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution. |
|
|
execAsArrayOf(org.javaruntype.type.Type<X> type,
IFunction<? super T[],X[]> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution. |
|
ExecutableArrayOperator<T> |
execIfFalseAsArray(IFunction<? super T[],Boolean> eval,
IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfFalseAsArrayOf(org.javaruntype.type.Type<X> type,
IFunction<? super T[],Boolean> eval,
IFunction<? super T[],X[]> function,
IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableArrayOperator<T> |
execIfNotNullAsArray(IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNotNullAsArrayOf(org.javaruntype.type.Type<X> type,
IFunction<? super T[],X[]> function,
IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableArrayOperator<T> |
execIfNullAsArray(IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfNullAsArrayOf(org.javaruntype.type.Type<X> type,
IFunction<? super T[],X[]> function,
IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableArrayOperator<T> |
execIfTrueAsArray(IFunction<? super T[],Boolean> eval,
IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
|
execIfTrueAsArrayOf(org.javaruntype.type.Type<X> type,
IFunction<? super T[],Boolean> eval,
IFunction<? super T[],X[]> function,
IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableArrayOperator<T> |
map(IFunction<? super T,? extends T> function)
Executes the specified function on each of the elements, creating a new operator containing the result of all the executions but not changing the operator type. |
|
|
map(org.javaruntype.type.Type<X> type,
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 specified. |
|
ExecutableArrayOperator<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(org.javaruntype.type.Type<X> type,
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. |
|
ExecutableArrayOperator<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(org.javaruntype.type.Type<X> type,
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. |
|
ExecutableArrayOperator<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(org.javaruntype.type.Type<X> type,
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. |
|
ExecutableArrayOperator<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(org.javaruntype.type.Type<X> type,
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 |
---|
ExecutableArrayOperator<T> execAsArray(IFunction<? super T[],? extends T[]> 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 array of the current operator's target type, and will return an array of the same type and structure.
function
- the function to be executed
<X> ExecutableArrayOperator<X> execAsArrayOf(org.javaruntype.type.Type<X> type, 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 array of the current operator's target type, and can return an array of a different type (specified by the type parameter), which will be from then on the new operator's target type.
X
- the type of the result elementstype
- the new type for the operatorfunction
- the function to be executed
ExecutableArrayOperator<T> execIfNotNullAsArray(IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableArrayOperator<T> execIfNullAsArray(IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
function
- the function to be executed on the selected elements
ExecutableArrayOperator<T> execIfTrueAsArray(IFunction<? super T[],Boolean> eval, IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(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
ExecutableArrayOperator<T> execIfFalseAsArray(IFunction<? super T[],Boolean> eval, IFunction<? super T[],? extends T[]> function)
Executes a function in a way equivalent to execAsArray(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> ExecutableArrayOperator<X> execIfNotNullAsArrayOf(org.javaruntype.type.Type<X> type, IFunction<? super T[],X[]> function, IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionstype
- 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> ExecutableArrayOperator<X> execIfNullAsArrayOf(org.javaruntype.type.Type<X> type, IFunction<? super T[],X[]> function, IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionstype
- 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> ExecutableArrayOperator<X> execIfTrueAsArrayOf(org.javaruntype.type.Type<X> type, IFunction<? super T[],Boolean> eval, IFunction<? super T[],X[]> function, IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionstype
- 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> ExecutableArrayOperator<X> execIfFalseAsArrayOf(org.javaruntype.type.Type<X> type, IFunction<? super T[],Boolean> eval, IFunction<? super T[],X[]> function, IFunction<? super T[],X[]> elseFunction)
Executes a function in a way equivalent to execAsArray(IFunction)
but only
on selected elements, leaving all other elements untouched.
X
- the new type returned by the functionstype
- 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 T[],X> function)
Executes the specified function on the target object, 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> ExecutableArrayOperator<X> map(org.javaruntype.type.Type<X> type, 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 specified.
This method is equivalent to forEach().exec(type, function).endFor().
X
- the type of the result elementstype
- the new type for the operatorfunction
- the function to be executed
ExecutableArrayOperator<T> map(IFunction<? super T,? extends T> function)
Executes the specified function on each of the elements, creating a new operator containing the result of all the executions but not changing the operator type. The specified function will have to return results compatible with the current operator type.
This method is equivalent to forEach().exec(function).endFor().
function
- the function to be executed
ExecutableArrayOperator<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
ExecutableArrayOperator<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
ExecutableArrayOperator<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
ExecutableArrayOperator<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> ExecutableArrayOperator<X> mapIfNotNull(org.javaruntype.type.Type<X> type, 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 functionstype
- 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> ExecutableArrayOperator<X> mapIfNull(org.javaruntype.type.Type<X> type, 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 functionstype
- 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> ExecutableArrayOperator<X> mapIfTrue(org.javaruntype.type.Type<X> type, 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 functionstype
- 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> ExecutableArrayOperator<X> mapIfFalse(org.javaruntype.type.Type<X> type, 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 functionstype
- 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 |