Refactor Category and Link Repository to use generic the persistence adapter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a1a67b3a7c
commit
e634fbd1aa
8 changed files with 75 additions and 19 deletions
|
@ -1,17 +1,22 @@
|
|||
package persistence;
|
||||
|
||||
import abstraction.PersistenceAdapter;
|
||||
import category.Category;
|
||||
import category.CategoryPersistenceAdapter;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class CSVCategoryPersistenceAdapter implements CategoryPersistenceAdapter {
|
||||
public class CSVCategoryPersistenceAdapter implements PersistenceAdapter<Category> {
|
||||
|
||||
@Override
|
||||
public Set<Category> getAll() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean remove(Category value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean add(Category category) {
|
||||
return null;
|
||||
|
|
Reference in a new issue