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
Method Summary |
V |
calc(java.util.Map[] contextArray)
This a convenience method that set the calculated value in the right context. |
V |
invoke(java.util.Map<K,?>[] contextArray)
This is the method that the user should override. |
invoke
V invoke(java.util.Map<K,?>[] contextArray)
- This is the method that the user should override.
- Parameters:
contextArray
-
- Returns:
calc
V calc(java.util.Map[] contextArray)
- This a convenience method that set the calculated value in the right context.
- Parameters:
contextArray
-
- Returns:
Copyright © 2008. All Rights Reserved.