Utils Introduction

The Utils package provides classes for BigDecimal, Boolean, Collection, etc mainly dealing with the possibility of Null!. The package requires JDK8.

It also provides Total, Average and WeightedAverage that handle BigDecimals (including nulls) for you.

Examples

Using Util Total

Using Util Average

Using Util WeightedAverage

Using Util Pair

Similar usage for Triplet and Quadruplet (but you would probably better model those as proper domain classes).

Using Utils