Wrapper

The "@Wrapper" annotation is applied to those wrapper methods that wrap the main method facilitating access to this last one avoiding passing some useless arguments


         //This method is an example wrapper method
         //In this case the useless argument is the 0
        = "sum(double x, double y, int decimals)")
        public double sum(double x, double y) {
             return sum(x, y, 0);
        }

         //This method is an example wrapped method
         //In this case the wrapped argument is the decimals
        public double sum(double x, double y, int decimals) {
             return TradingTools.roundValue(x + y, decimals);
        }

    

Author

N7ghtm4r3 - Tecknobit

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
abstract fun wrapper_of(): String
wrapper_of method wrapped by the method with this annotation