de.jaetzold.util
Class BooleanConversionAdapter
java.lang.Object
|
+--de.jaetzold.util.BooleanConversionAdapter
- All Implemented Interfaces:
- BooleanConversion
- public abstract class BooleanConversionAdapter
- extends Object
- implements BooleanConversion
Method Summary |
abstract boolean |
convertToBoolean(double value)
|
boolean |
isCacheable()
Tells whether this instance will in the future produce the same result for the same arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanConversionAdapter
public BooleanConversionAdapter()
isCacheable
public boolean isCacheable()
- Description copied from interface:
BooleanConversion
- 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.
- Specified by:
isCacheable
in interface BooleanConversion
- Following copied from interface:
de.jaetzold.util.BooleanConversion
- Returns:
- true if this instance guarantees, that any further call to convertToLong/DoubleValue() with the same arguments returns the same result
convertToBoolean
public abstract boolean convertToBoolean(double value)
- Specified by:
convertToBoolean
in interface BooleanConversion