/** * Get the average of the contents of a {@link List} of {@link Number} values, excluding null entries * * @param list the {@link List} of {@link Number} values * @return the average of the not-null values as a {@link Number} value */ public static Number average(List<? extends Number> list) { return averageBigDecimal(convertNumberToBigDecimal(list)); }