class DateFieldActions implements AtlasFieldAction {

    @AtlasActionProcessor(sourceType = FieldType.ANY_DATE)
    public static ZonedDateTime addDays(AddDays addDays, ZonedDateTime input) {
        if (addDays == null) {
            throw new IllegalArgumentException("AddDays action must be specified");
        }
        if (input == null) {
            return null;
        }

        return input.plusDays(addDays.getDays() == null ? 0L : addDays.getDays());
    }

}