org.op4j.functions
Interface ExecCtx

All Known Implementing Classes:
ExecCtxImpl

public interface ExecCtx

Function execution context, contaning execution metadata.

Since:
1.0
Author:
Daniel Fernández

Method Summary
 Integer getIndex()
           If the execution of a function is performed during the iteration of an array, list, map or set, this method will return the iteration index each time the function is executed (the position of the element in the array, list... on which the function is being executed).
 

Method Detail

getIndex

Integer getIndex()

If the execution of a function is performed during the iteration of an array, list, map or set, this method will return the iteration index each time the function is executed (the position of the element in the array, list... on which the function is being executed).

If execution is performed without iteration involved, this method will return null.

Returns:
the iteration index during an iteration, null elsewhere.


Copyright © 2012 The OP4J team. All Rights Reserved.