class TaskServiceImpl implements TaskService {

    @Override
    public void addOrUpdate(Task task) {
        if (task.getId() == null) {
            throw new IllegalArgumentException("Id property must be set");
        }
        tasks.put(task.getId(), task);
    }

    public  TaskServiceImpl();

}