|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILevel1ArrayElementsOperator<I,T>
Method Summary | ||
---|---|---|
|
castTo(org.javaruntype.type.Type<X> type)
Casts the operator's target as the specified type. |
|
ILevel0ArrayOperator<I,T> |
endFor()
Ends the current iteration. |
|
ILevel1ArrayElementsOperator<I,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. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfFalse(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfIndex(int[] indexes,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfIndexNot(int[] indexes,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfNotNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfNull(IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsOperator<I,T> |
execIfTrue(IFunction<? super T,Boolean> eval,
IFunction<? super T,? extends T> function)
Executes a function in a way equivalent to ExecutableArrayElementsOperator.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 ExecutableArrayElementsOperator.exec(IFunction) but only
on selected elements, leaving all other elements untouched. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifFalse(IFunction<? super T,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifIndex(int... indexes)
Selects only those targets which index in the current level of iteration matches any of the specified indexes. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifIndexNot(int... indexes)
Selects only those targets which index in the current level of iteration does not match any of the specified indexes. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifNotNull()
Selects only those targets which are not null. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifNull()
Selects only those targets which are null. |
|
ILevel1ArrayElementsSelectedOperator<I,T> |
ifTrue(IFunction<? super T,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
|
ILevel1ArrayElementsOperator<I,T> |
replaceIfNullWith(T replacement)
Replaces the current target object with the specified replacement if the current target is null. |
|
ILevel1ArrayElementsOperator<I,T> |
replaceWith(T replacement)
Replaces the current target object with the specified replacement. |
Method Detail |
---|
ILevel1ArrayElementsSelectedOperator<I,T> ifIndex(int... indexes)
SelectableElementsOperator
Selects only those targets which index in the current level of iteration matches any of the specified indexes. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifIndex
in interface SelectableElementsOperator<T>
indexes
- the indexes of the target objects which will be selected.
ILevel1ArrayElementsSelectedOperator<I,T> ifTrue(IFunction<? super T,Boolean> eval)
SelectableElementsOperator
Selects only those targets for which the specified evaluator returns true. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifTrue
in interface SelectableElementsOperator<T>
eval
- the evaluator to be used for selecting targets.
ILevel1ArrayElementsSelectedOperator<I,T> ifFalse(IFunction<? super T,Boolean> eval)
SelectableElementsOperator
Selects only those targets for which the specified evaluator returns false. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifFalse
in interface SelectableElementsOperator<T>
eval
- the evaluator to be used for selecting targets.
ILevel1ArrayElementsSelectedOperator<I,T> ifNull()
SelectableElementsOperator
Selects only those targets which are null. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifNull
in interface SelectableElementsOperator<T>
ILevel1ArrayElementsSelectedOperator<I,T> ifIndexNot(int... indexes)
SelectableElementsOperator
Selects only those targets which index in the current level of iteration does not match any of the specified indexes. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifIndexNot
in interface SelectableElementsOperator<T>
indexes
- the indexes of the target objects which will be selected.
ILevel1ArrayElementsSelectedOperator<I,T> ifNotNull()
SelectableElementsOperator
Selects only those targets which are not null. After this method, all the subsequently executed operations will only be executed on the target objects selected here, until an "endIf()" method is called.
ifNotNull
in interface SelectableElementsOperator<T>
ILevel0ArrayOperator<I,T> endFor()
NavigatingCollectionOperator
Ends the current iteration. After the execution of this method, all subsequent operations will be applied on the iterated collection as a whole instead of in a by-element basis.
endFor
in interface NavigatingCollectionOperator<T>
ILevel1ArrayElementsOperator<I,T> replaceWith(T replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ReplaceableOperator<T>
replacement
- the object which will replace the current target object.
ILevel1ArrayElementsOperator<I,T> replaceIfNullWith(T replacement)
ReplaceableIfNullOperator
Replaces the current target object with the specified replacement if the current target is null.
replaceIfNullWith
in interface ReplaceableIfNullOperator<T>
replacement
- the object which will replace the current target object if target is null.
ILevel1ArrayElementsOperator<I,T> exec(IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
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.
exec
in interface ExecutableArrayElementsOperator<T>
function
- the function to be executed
<X> ILevel1ArrayElementsOperator<I,X> exec(org.javaruntype.type.Type<X> type, IFunction<? super T,X> function)
ExecutableArrayElementsOperator
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.
exec
in interface ExecutableArrayElementsOperator<T>
X
- the type of the result, and new type for the operatortype
- the type returned by the functionfunction
- the function to be executed
ILevel1ArrayElementsOperator<I,T> execIfIndex(int[] indexes, IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfIndex
in interface ExecutableArrayElementsOperator<T>
indexes
- the iteration indexes that will be selectedfunction
- the function to be executed on the selected elements
ILevel1ArrayElementsOperator<I,T> execIfIndexNot(int[] indexes, IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfIndexNot
in interface ExecutableArrayElementsOperator<T>
indexes
- the iteration indexes that will not be selectedfunction
- the function to be executed on the selected elements
ILevel1ArrayElementsOperator<I,T> execIfNotNull(IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNotNull
in interface ExecutableArrayElementsOperator<T>
function
- the function to be executed on the selected elements
ILevel1ArrayElementsOperator<I,T> execIfNull(IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNull
in interface ExecutableArrayElementsOperator<T>
function
- the function to be executed on the selected elements
ILevel1ArrayElementsOperator<I,T> execIfTrue(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfTrue
in interface ExecutableArrayElementsOperator<T>
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
ILevel1ArrayElementsOperator<I,T> execIfFalse(IFunction<? super T,Boolean> eval, IFunction<? super T,? extends T> function)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfFalse
in interface ExecutableArrayElementsOperator<T>
eval
- the evaluation function used to select elementsfunction
- the function to be executed on the selected elements
<X> ILevel1ArrayElementsOperator<I,X> execIfIndex(org.javaruntype.type.Type<X> type, int[] indexes, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfIndex
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> execIfIndexNot(org.javaruntype.type.Type<X> type, int[] indexes, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfIndexNot
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> execIfNotNull(org.javaruntype.type.Type<X> type, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNotNull
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> execIfNull(org.javaruntype.type.Type<X> type, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfNull
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> execIfTrue(org.javaruntype.type.Type<X> type, IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfTrue
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> execIfFalse(org.javaruntype.type.Type<X> type, IFunction<? super T,Boolean> eval, IFunction<? super T,X> function, IFunction<? super T,X> elseFunction)
ExecutableArrayElementsOperator
Executes a function in a way equivalent to ExecutableArrayElementsOperator.exec(IFunction)
but only
on selected elements, leaving all other elements untouched.
execIfFalse
in interface ExecutableArrayElementsOperator<T>
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> ILevel1ArrayElementsOperator<I,X> castTo(org.javaruntype.type.Type<X> type)
CastableToTypeOperator
Casts the operator's target as the specified type.
castTo
in interface CastableToTypeOperator<T>
X
- the type of the targetstype
- the type of targets
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |