class NumberFieldActions implements AtlasFieldAction {

    @AtlasActionProcessor
    public static Number average(Average action, List<Number> inputs) {
        if (inputs == null) {
            return 0;
        }
        return add(null, inputs).doubleValue() / inputs.size();
    }

}