package ryhma57.references;

import java.util.EnumSet;
import ryhma57.backend.BibtexReferenceField;
import static ryhma57.backend.BibtexReferenceField.*;

public class Book extends Reference {
    private static EnumSet<BibtexReferenceField> existingFields;
    private static EnumSet<BibtexReferenceField> requiredFields, optionalFields;

    static {
        Book.requiredFields = Reference.createFieldSet(AUTHOR,
                EDITOR, TITLE, YEAR, PUBLISHER);
        Book.optionalFields = Reference.createFieldSet(VOLUME,
                NUMBER, SERIES, ADDRESS, EDITION, MONTH, NOTE);
        Book.existingFields = Reference.createExistingSet(
                Book.requiredFields, Book.optionalFields);
    }

    public Book(String id, String author, String title, String year, String publisher) {
        super(existingFields, requiredFields, "book");
        setID(id);
        setField(AUTHOR, author);
        setField(TITLE, title);
        setField(YEAR, year);
        setField(PUBLISHER, publisher);
    }
    public Book() {
        super(existingFields, requiredFields, "book");
    }
}

@@ -714,313 +714,8 @@
  %7D%0A%0A
-    public Book(String id, String author, String title, String year, String publisher) %7B%0A        super(existingFields, requiredFields, %22book%22);%0A        setID(id);%0A        setField(AUTHOR, author);%0A        setField(TITLE, title);%0A        setField(YEAR, year);%0A        setField(PUBLISHER, publisher);%0A    %7D%0A
     

Remove unused function.