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);
}
Content copied to clipboard
Author
N7ghtm4r3 - Tecknobit