public class NumberToComplexDecorator extends FieldDecorator
ComplexField,
Serialized Form| Constructor and Description |
|---|
NumberToComplexDecorator(FieldI field) |
NumberToComplexDecorator(FieldI field,
boolean simplifyResults)
If simplifyResults is true any complex results which represent real numbers will be converted back to doubles.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertInput(java.lang.Object in)
Attempt to convert the input to a Field method.
|
java.lang.Object |
convertOutput(java.lang.Object out)
Attempt to convert the output from a Field method.
|
public NumberToComplexDecorator(FieldI field)
public NumberToComplexDecorator(FieldI field, boolean simplifyResults)
field - base fieldsimplifyResults - whether to try to convert real results back to Doubles.public java.lang.Object convertInput(java.lang.Object in)
throws EvaluationException
FieldDecoratorconvertInput in class FieldDecoratorin to a different type, otherwise return in.EvaluationExceptionpublic java.lang.Object convertOutput(java.lang.Object out)
throws EvaluationException
FieldDecoratorconvertOutput in class FieldDecoratorout to a different type, otherwise return out.EvaluationExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep