From d838299b0972089938dedbd390f31d9e5622b5b6 Mon Sep 17 00:00:00 2001 From: MatheaGjerde Date: Sun, 1 Mar 2026 23:19:30 +0100 Subject: [PATCH] feat: created Repository --- .../java/edu/group5/app/model/Repository.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/group5/app/model/Repository.java b/src/main/java/edu/group5/app/model/Repository.java index 53971bd..3d50bbe 100644 --- a/src/main/java/edu/group5/app/model/Repository.java +++ b/src/main/java/edu/group5/app/model/Repository.java @@ -1,4 +1,25 @@ package edu.group5.app.model; -public class Repository { +/** + * Represents a repository. + */ +public abstract class Repository { + /** + * The underlying data structure that holds the repository's content. + */ + protected Object content; + + /** + * Constructs a new Repository with the specified content. + * + * @param content the underlying data structure used to store entities + */ + protected Repository(Object content) { + this.content = content; + } + + /** + * @return content of the repo + */ + public abstract Object getContent(); }