code: public static BigDecimal ensureMin(final BigDecimal minimum, final BigDecimal value) {
          return BigDecimalUtil.compareTo(minimum, value) == 1 ? minimum : value;
      }
docs: Return minimum if the value is &lt; minimum.