Package org.apache.calcite.util
Class ReflectVisitorTest.CarelessNumberNegater
- java.lang.Object
-
- org.apache.calcite.util.ReflectVisitorTest.NumberNegater
-
- org.apache.calcite.util.ReflectVisitorTest.CarelessNumberNegater
-
- All Implemented Interfaces:
org.apache.calcite.util.ReflectiveVisitor
- Direct Known Subclasses:
ReflectVisitorTest.CarefulNumberNegater
- Enclosing class:
- ReflectVisitorTest
public class ReflectVisitorTest.CarelessNumberNegater extends ReflectVisitorTest.NumberNegater
CarelessNumberNegater implements NumberNegater in a careless fashion by converting its input to a double and then negating that. This can lose precision for types such as BigInteger.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.util.ReflectVisitorTest.NumberNegater
result
-
-
Constructor Summary
Constructors Constructor Description CarelessNumberNegater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(java.lang.Number n)
-
Methods inherited from class org.apache.calcite.util.ReflectVisitorTest.NumberNegater
negate, negateWithoutDispatcher
-
-