Skip to content

Commit

Permalink
refactor: made Repository use generics instead of Object type
Browse files Browse the repository at this point in the history
  • Loading branch information
emilfa committed Mar 3, 2026
1 parent 7f88fa1 commit 23c7524
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/edu/group5/app/model/Repository.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
package edu.group5.app.model;

import java.util.Map;

/**
* Represents a repository
*/
public abstract class Repository {
protected final Object content;
public abstract class Repository<K, V> {
protected final Map<K, V> content;

public Repository(Object content) {
public Repository(Map<K, V> content) {
this.content = content;
}

/**
* Gets the content of the repo
* @return content of the repo
*/
public Object getContent() {
public Map<K, V> getContent() {
return content;
}
}

0 comments on commit 23c7524

Please sign in to comment.