|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DoubleRepresentable
A DoubleRepresentable object can be represented as a double, and can have its value set from a double.
Note: There is no guarantee that doubleValue() and setValue() have an inverse relationship. It may be
that setValue() converts a double value into some domain-dependent form, from which there is no return to
the original double value (therefore, doubleValue() would not necessarily return that same double value.
That is, in the code below the boolean areEqual variable may be either true or false:
double doubleValue = 5;
Solution s = new DomainDependentSolution();
s.setValue(doubleValue);
areEqual = (s.doubleValue() == doubleValue); // may be true or false, depending on DomainDependentSolution
Method Summary | |
---|---|
double |
getValueAsDouble()
Get a representation of this feature as a double. |
void |
setValueWithDouble(double newValue)
Set the value of this feature according to a double. |
Method Detail |
---|
double getValueAsDouble()
void setValueWithDouble(double newValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |