org.op4j.util
Class ExecCtxImpl

Object
  extended by org.op4j.util.ExecCtxImpl
All Implemented Interfaces:
ExecCtx

public final class ExecCtxImpl
extends Object
implements ExecCtx

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
ExecCtxImpl(Integer index)
           
 
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).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecCtxImpl

public ExecCtxImpl(Integer index)
Method Detail

getIndex

public Integer getIndex()
Description copied from interface: ExecCtx

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.

Specified by:
getIndex in interface ExecCtx
Returns:
the iteration index during an iteration, null elsewhere.


Copyright © 2012 The OP4J team. All Rights Reserved.