|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableArrayElementsOperator<T>
This interface contains methods for executing functions.
Method Summary | ||
---|---|---|
ExecutableArrayElementsOperator<T> |
exec(IFunction<? super T,? extends T> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution as a new array. |
|
|
exec(org.javaruntype.type.Type<X> type,
IFunction<? super T,X> function)
Executes the specified function on the target object, creating a new array containing the result of the execution. |
|
ExecutableArrayElementsOperator<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(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 exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ExecutableArrayElementsOperator<T> |
execIfIndex(int[] indexes,
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. |
|
|
execIfIndex(org.javaruntype.type.Type<X> type,
int[] indexes,
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. |
|
ExecutableArrayElementsOperator<T> |
execIfIndexNot(int[] indexes,
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. |
|
|
execIfIndexNot(org.javaruntype.type.Type<X> type,
int[] indexes,
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. |
|
ExecutableArrayElementsOperator<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(org.javaruntype.type.Type<X> type,
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. |
|
ExecutableArrayElementsOperator<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(org.javaruntype.type.Type<X> type,
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. |
|
ExecutableArrayElementsOperator<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(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 exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
Method Detail |
---|
ExecutableArrayElementsOperator<T> exec(IFunction<? super T,? extends T> function)
Executes the specified function on the target object, creating a new operator containing the result of the execution as a new array.
This function must be able to take as input an object of type T (the current operator's target type) and will return another object of type T.
function
- the function to be executed
<X> ExecutableArrayElementsOperator<X> exec(org.javaruntype.type.Type<X> type, IFunction<? super T,X> function)
Executes the specified function on the target object, creating a new array 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 operatortype
- the type returned by the functionfunction
- the function to be executed
ExecutableArrayElementsOperator<T> execIfIndex(int[] indexes, 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.
indexes
- the iteration indexes that will be selectedfunction
- the function to be executed on the selected elements
ExecutableArrayElementsOperator<T> execIfIndexNot(int[] indexes, 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.
indexes
- the iteration indexes that will not be selectedfunction
- the function to be executed on the selected elements
ExecutableArrayElementsOperator<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
ExecutableArrayElementsOperator<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
ExecutableArrayElementsOperator<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
ExecutableArrayElementsOperator<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> ExecutableArrayElementsOperator<X> execIfIndex(org.javaruntype.type.Type<X> type, int[] indexes, 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 functionstype
- the new type returned by the functionsindexes
- the iteration indexes that will be selectedfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X> ExecutableArrayElementsOperator<X> execIfIndexNot(org.javaruntype.type.Type<X> type, int[] indexes, 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 functionstype
- the new type returned by the functionsindexes
- the iteration indexes that will not be selectedfunction
- the function to be executed on the selected elementselseFunction
- the function to be executed on the non-selected elements
<X> ExecutableArrayElementsOperator<X> execIfNotNull(org.javaruntype.type.Type<X> type, 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 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> ExecutableArrayElementsOperator<X> execIfNull(org.javaruntype.type.Type<X> type, 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 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> ExecutableArrayElementsOperator<X> execIfTrue(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 exec(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> ExecutableArrayElementsOperator<X> execIfFalse(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 exec(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 |