Class Document

java.lang.Object
de.bcxp.challenge.common.model.Document

public class Document extends Object
Represents an abstract document containing a list of DocumentEntry objects.
Subclasses should define specific behavior for different types of documents.
  • Field Details

    • logger

      private static final org.apache.logging.log4j.Logger logger
    • entries

      private final List<DocumentEntry> entries
      A list of DocumentEntry objects present in the represented document.

      Consideration was given to represent entries as a Set to avoid saving duplicate entries. A List was chosen to represent the entries since there might be documents with identical entries that could be valid.

  • Constructor Details

  • Method Details