org.eigenbase.util
Class ReflectVisitorTest.CarefulNumberNegater

java.lang.Object
  extended by org.eigenbase.util.ReflectVisitorTest.NumberNegater
      extended by org.eigenbase.util.ReflectVisitorTest.CarelessNumberNegater
          extended by 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.


Field Summary
 
Fields inherited from class org.eigenbase.util.ReflectVisitorTest.NumberNegater
result
 
Constructor Summary
ReflectVisitorTest.CarefulNumberNegater()
           
 
Method Summary
 void visit(Integer i)
           
 void visit(Short s)
           
 
Methods inherited from class org.eigenbase.util.ReflectVisitorTest.CarelessNumberNegater
visit
 
Methods inherited from class org.eigenbase.util.ReflectVisitorTest.NumberNegater
negate, negateWithoutDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectVisitorTest.CarefulNumberNegater

public ReflectVisitorTest.CarefulNumberNegater()
Method Detail

visit

public void visit(Integer i)

visit

public void visit(Short s)