org.eigenbase.util
Class ReflectVisitorTest.CarefulNumberNegater
java.lang.Object
org.eigenbase.util.ReflectVisitorTest.NumberNegater
org.eigenbase.util.ReflectVisitorTest.CarelessNumberNegater
org.eigenbase.util.ReflectVisitorTest.CarefulNumberNegater
- All Implemented Interfaces:
- ReflectiveVisitor
- Enclosing class:
- ReflectVisitorTest
public class ReflectVisitorTest.CarefulNumberNegater
- extends ReflectVisitorTest.CarelessNumberNegater
CarefulNumberNegater implements NumberNegater in a careful fashion by
providing overloads for each known subclass of Number and returning the
same subclass for the result. Extends CarelessNumberNegater so that it
can still handle unknown types of Number.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectVisitorTest.CarefulNumberNegater
public ReflectVisitorTest.CarefulNumberNegater()
visit
public void visit(Integer i)
visit
public void visit(Short s)