org.shapelogic.calculation
Class NamedCalcFixed<T>

java.lang.Object
  extended by org.shapelogic.calculation.NamedCalcFixed<T>
Type Parameters:
T -
All Implemented Interfaces:
CalcValue<T>

public final class NamedCalcFixed<T>
extends java.lang.Object
implements CalcValue<T>

This is a calculation that is done and set in the root context.
The value is immutable.

Author:
Sami Badawi

Constructor Summary
NamedCalcFixed(java.lang.String key, T value, RecursiveContext recursiveContext)
           
 
Method Summary
 T getValue()
          Starts a lazy calculation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedCalcFixed

public NamedCalcFixed(java.lang.String key,
                      T value,
                      RecursiveContext recursiveContext)
Method Detail

getValue

public T getValue()
Description copied from interface: CalcValue
Starts a lazy calculation. If dirty do calc() else return cached value. This should maybe be moved up in the hierarchy

Specified by:
getValue in interface CalcValue<T>


Copyright © 2009. All Rights Reserved.