ConstantArithmeticExp.java :  » Report » jmagallanes-1.0 » com » calipso » reportgenerator » reportcalculator » arithmetic » Java Open Source

Java Open Source » Report » jmagallanes 1.0 
jmagallanes 1.0 » com » calipso » reportgenerator » reportcalculator » arithmetic » ConstantArithmeticExp.java
package com.calipso.reportgenerator.reportcalculator.arithmetic;

import java.util.Map;
import java.io.Serializable;

/**
 * Representa una constante de la expression.
 */

public class ConstantArithmeticExp extends ValueArithmeticExp implements Serializable{
  private float value;

  /**
   * Inicializa una instancia de <code>ConstantArithmeticExp</code>
   * @param value
   */
  public ConstantArithmeticExp(float value) {
    this.value = value;
  }

  /**
   * Retorna el valor.
   * @param context
   * @return
   */
  public float value(Map context) {
    return value;
  }

  /**
   * Metodo toString de la clase
   * @return
   */
  public String toString() {
    return String.valueOf(value);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.