de.jaetzold.util
Interface Conversion
- All Known Implementing Classes:
- ConversionAdapter
- public interface Conversion
Method Summary |
double |
convert(double value)
|
boolean |
getDeliversFloatingPoint()
Tells whether this instance really delivers floating point values. |
boolean |
isCacheable()
Tells whether this instance will in the future produce the same result for the same arguments. |
isCacheable
public boolean isCacheable()
- Tells whether this instance will in the future produce the same result for the same arguments.
This can be false first and then true at a later time, but it is not legal to return false here after a return of true in the past, because the true answer before was wrong then.
- Returns:
- true if this instance guarantees, that any further call to convert(double) with the same argument returns the same result
getDeliversFloatingPoint
public boolean getDeliversFloatingPoint()
- Tells whether this instance really delivers floating point values. That means whether the result of a convert() can not always be cast to long without a loss of precision.
convert
public double convert(double value)