package de.adesso.iliasdownloader3.service.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author broj
 * @since 31.05.2016
 */
@Data
public final class Course extends AbstractIliasItem {
    private final Collection<? extends CourseItem> items;

    public Course(int id, String name, String url, Collection<? extends CourseItem> items) {
        super(id, name, url);
        this.items = items;
    }

    public Course(int id, String name, String url) {
        this(id, name, url, new ArrayList<>());
    }
}

@@ -63,16 +63,73 @@
 ok.Data;
+%0Aimport lombok.EqualsAndHashCode;%0Aimport lombok.ToString;
 %0A%0Aimport
@@ -231,16 +231,81 @@
 /%0A@Data%0A
+@EqualsAndHashCode(callSuper = true)%0A@ToString(callSuper = true)%0A
 public f

fix course (equals/hashcode/tostring)