|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.rubecula.jep.PresentableNumberFactory
This class implements JEP's NumberFactory interface to allow the creation of JQuantity BaseNumbers when parsing expressions using JEP.
Note that this class does reference any jquantity classes at compile-time. Instead the references are dynamic.
| Constructor Summary | |
PresentableNumberFactory()
Constructor of a factory for creating jquantity objects for the purposes of the JEP expression parser. |
|
| Method Summary | |
java.lang.Object |
createNumber(double number)
Method to implement the NumberFactory interface of the org.nfunk.jep package. |
protected java.lang.Object |
createNumber(double number,
double bound)
Method to create a Number with a given value and error bound. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PresentableNumberFactory()
| Method Detail |
public java.lang.Object createNumber(double number)
createNumber(double,double) with an error bound of 0.
createNumber in interface org.nfunk.jep.type.NumberFactorynumber - a number to be converted to an object.
protected java.lang.Object createNumber(double number,
double bound)
number - a number to be converted to an object.bound - - the relative error bound of the number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||