org.shapelogic.calculation
Interface CalcInContext<K,V>
- Type Parameters:
K
- V
-
- All Superinterfaces:
- CalcValue<V>, LazyCalc<V>
- All Known Implementing Classes:
- BaseCalcInContext
public interface CalcInContext<K,V>
- extends LazyCalc<V>
Some calculations rely on the context that it is going on in.
- Author:
- Sami Badawi
invoke
V invoke(RecursiveContext<K> contextArray)
- This is the method that the user should override.
- Parameters:
contextArray
-
- Returns:
calc
V calc(RecursiveContext<K> contextArray)
- This a convenience method that set the calculated value in the right context.
- Parameters:
contextArray
-
- Returns:
Copyright © 2008. All Rights Reserved.