1 /***************************************************************************** 2 3 JEP - Java Math Expression Parser 2.3.0 4 October 3 2004 5 (c) Copyright 2004, Nathan Funk and Richard Morris 6 See LICENSE.txt for license information. 7 8 *****************************************************************************/ 9 10 package org.nfunk.jep.type; 11 12 /** 13 * Default class for creating number objects. This class can be replaced by 14 * other NumberFactory implementations if other number types are required. This 15 * can be done using the 16 */ 17 public class DoubleNumberFactory implements NumberFactory { 18 19 /** 20 * Creates a Double object initialized to the value of the parameter. 21 * 22 * @param value The initialization value for the returned object. 23 */ 24 public Object createNumber(String value) { return new Double(value); } 25 //public Object createNumber(double value) { return new Double(value); } 26 //public Object createNumber(Double value) { return value; } 27 28 } 29