class MathUtil extends AbstractCaller {

    @Description("Returns the maximum of the BigDecimal values <br/>" +
            "<b>numbers</b> - BigDecimal values for comparison<br/>" +
            "Example:<br/>" +
            "#{maxBigDecimal(5.0B, 4.0B, 3.0B)} returns 5.0")
    @UtilityMethod
    public BigDecimal maxBigDecimal(BigDecimal... numbers){
        Arrays.sort(numbers);
        return numbers[numbers.length - 1];
    }

}