|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.operators.impl.AbstractOperator org.op4j.operators.impl.op.array.Level1ArraySelectedElementsSelectedOperator<I,T>
public final class Level1ArraySelectedElementsSelectedOperator<I,T>
Constructor Summary | |
---|---|
Level1ArraySelectedElementsSelectedOperator(org.javaruntype.type.Type<T> type,
Target target)
|
Method Summary | |
---|---|
Level1ArraySelectedElementsOperator<I,T> |
endIf()
Ends the selection currently active for this level. |
Level1ArraySelectedElementsSelectedOperator<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. |
T[] |
get()
Returns the target object this operator currently holds. |
Level1ArraySelectedElementsSelectedOperator<I,T> |
replaceWith(T replacement)
Replaces the current target object with the specified replacement. |
Methods inherited from class org.op4j.operators.impl.AbstractOperator |
---|
getTarget |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Level1ArraySelectedElementsSelectedOperator(org.javaruntype.type.Type<T> type, Target target)
Method Detail |
---|
public Level1ArraySelectedElementsOperator<I,T> endIf()
SelectedElementsOperator
Ends the selection currently active for this level.
endIf
in interface ILevel1ArraySelectedElementsSelectedOperator<I,T>
endIf
in interface SelectedElementsOperator<T>
public Level1ArraySelectedElementsSelectedOperator<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 ILevel1ArraySelectedElementsSelectedOperator<I,T>
exec
in interface ExecutableSelectedOperator<T>
function
- the function to be executed
public Level1ArraySelectedElementsSelectedOperator<I,T> replaceWith(T replacement)
ReplaceableOperator
Replaces the current target object with the specified replacement.
replaceWith
in interface ILevel1ArraySelectedElementsSelectedOperator<I,T>
replaceWith
in interface ReplaceableOperator<T>
replacement
- the object which will replace the current target object.
public T[] get()
UniqOpOperator
Returns the target object this operator currently holds.
get
in interface UniqOpOperator<I,T[]>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |