Class ReflectVisitorTest.CarefulNumberNegater

  • All Implemented Interfaces:
    Enclosing class:

    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.
    • Constructor Detail

      • CarefulNumberNegater

        public CarefulNumberNegater()
    • Method Detail

      • visit

        public void visit​(java.lang.Integer i)
      • visit

        public void visit​(java.lang.Short s)