From e56e2a25251d94565e66be2c5a192b365c8f4df8 Mon Sep 17 00:00:00 2001 From: jan-kir-wwu Date: Wed, 13 Dec 2023 21:23:25 +0100 Subject: [PATCH] fix: removed all generics finally --- .../api/controller/IExecutionController.java | 15 ++++++++++++++- .../erathor/api/controller/IModelController.java | 12 ++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/erathor/api/controller/IExecutionController.java b/src/main/java/org/erathor/api/controller/IExecutionController.java index 1d56b6b..4dc2913 100644 --- a/src/main/java/org/erathor/api/controller/IExecutionController.java +++ b/src/main/java/org/erathor/api/controller/IExecutionController.java @@ -1,7 +1,20 @@ package org.erathor.api.controller; import org.erathor.api.model.IExecution; +import org.erathor.api.model.IModel; -public interface IExecutionController extends IModelController { +import java.util.List; +import java.util.Optional; +public interface IExecutionController extends IModelController { + + public Optional read(Integer id); + + public void create(IExecution model); + + public void update(IExecution model); + + public void delete(IExecution model); + + public List readAll(); } diff --git a/src/main/java/org/erathor/api/controller/IModelController.java b/src/main/java/org/erathor/api/controller/IModelController.java index 8107d65..bd309a8 100644 --- a/src/main/java/org/erathor/api/controller/IModelController.java +++ b/src/main/java/org/erathor/api/controller/IModelController.java @@ -5,16 +5,16 @@ import org.erathor.api.model.IModel; -public interface IModelController { +public interface IModelController { - public Optional read(Integer id); + public Optional read(Integer id); - public void create(M model); + public void create(IModel model); - public void update(M model); + public void update(IModel model); - public void delete(M model); + public void delete(IModel model); - public List readAll(); + public List readAll(); }