|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILevel1ListSelectedElementsOperator<I,T>
Method Summary | |
---|---|
ILevel0ListSelectedOperator<I,T> |
endFor()
Ends the current iteration. |
ILevel1ListSelectedElementsOperator<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. |
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifFalse(IFunction<? super T,Boolean> eval)
Selects only those targets for which the specified evaluator returns false. |
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifIndex(int... indexes)
Selects only those targets which index in the current level of iteration matches any of the specified indexes. |
ILevel1ListSelectedElementsSelectedOperator<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. |
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNotNull()
Selects only those targets which are not null. |
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNotNullAndFalse(IFunction<? super T,Boolean> eval)
|
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNotNullAndTrue(IFunction<? super T,Boolean> eval)
|
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNull()
Selects only those targets which are null. |
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNullOrFalse(IFunction<? super T,Boolean> eval)
|
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifNullOrTrue(IFunction<? super T,Boolean> eval)
|
ILevel1ListSelectedElementsSelectedOperator<I,T> |
ifTrue(IFunction<? super T,Boolean> eval)
Selects only those targets for which the specified evaluator returns true. |
ILevel1ListSelectedElementsOperator<I,T> |
replaceWith(T replacement)
Replaces the current target object with the specified replacement. |
Method Detail |
---|
ILevel1ListSelectedElementsSelectedOperator<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.
ILevel1ListSelectedElementsSelectedOperator<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.
ILevel1ListSelectedElementsSelectedOperator<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.
ILevel1ListSelectedElementsSelectedOperator<I,T> ifNullOrFalse(IFunction<? super T,Boolean> eval)
ILevel1ListSelectedElementsSelectedOperator<I,T> ifNotNullAndFalse(IFunction<? super T,Boolean> eval)
ILevel1ListSelectedElementsSelectedOperator<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>
ILevel1ListSelectedElementsSelectedOperator<I,T> ifNullOrTrue(IFunction<? super T,Boolean> eval)
ILevel1ListSelectedElementsSelectedOperator<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.
ILevel1ListSelectedElementsSelectedOperator<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>
ILevel1ListSelectedElementsSelectedOperator<I,T> ifNotNullAndTrue(IFunction<? super T,Boolean> eval)
ILevel0ListSelectedOperator<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>
ILevel1ListSelectedElementsOperator<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.
ILevel1ListSelectedElementsOperator<I,T> exec(IFunction<? super T,? extends T> function)
ExecutableSelectedOperator
Executes the specified function on the target object, creating a new operator containing the result of the execution.
This function does not allow the operator target type to change because a selection ("if") has already been done on the target objects, and this would render the operator inconsistent (some objects would belong to a type and others to another type).
exec
in interface ExecutableSelectedOperator<T>
function
- the function to be executed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |