org.shapelogic.calculation
Class CalcFixed<T>

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

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

This is a calculation that is done.
The value is immutable.

Author:
Sami Badawi

Constructor Summary
CalcFixed(T value)
           
 
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

CalcFixed

public CalcFixed(T value)
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.