package gruppn.kasslr.model;

import java.util.ArrayList;
import java.util.List;

public class Shelf {
    private List<VocabularyItem> items;
    private List<Vocabulary> vocabularies;

    public Shelf() {
        items = new ArrayList<>();
        vocabularies = new ArrayList<>();
    }

    public List<VocabularyItem> getItems() {
        return items;
    }

    public void addItem(VocabularyItem item){
        items.add(item);
    }

    public void addItems(List<VocabularyItem> items) {
        items.addAll(items);
    }

    public List<Vocabulary> getVocabularies() {
        return vocabularies;
    }

    public void addVocabulary(Vocabulary voc){
        vocabularies.add(voc);
    }

    public void addVocabularies(List<Vocabulary> vocabularies) {
        vocabularies.addAll(vocabularies);
    }

    @Override
    public String toString() {
        return "Shelf{" +
                "items=" + items +
                ", vocabularies=" + vocabularies +
                '}';
    }
}

@@ -492,32 +492,37 @@
 tems) %7B%0A        
+this.
 items.addAll(ite
@@ -767,32 +767,37 @@
 ries) %7B%0A        
+this.
 vocabularies.add

How did it come to this