Skip to content

Commit

Permalink
fix: removed all generics finally
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kir-wwu committed Dec 13, 2023
1 parent 02daf8b commit e56e2a2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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<IExecution> {
import java.util.List;
import java.util.Optional;

public interface IExecutionController extends IModelController {

public Optional<IExecution> read(Integer id);

public void create(IExecution model);

public void update(IExecution model);

public void delete(IExecution model);

public List<IExecution> readAll();
}
12 changes: 6 additions & 6 deletions src/main/java/org/erathor/api/controller/IModelController.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

import org.erathor.api.model.IModel;

public interface IModelController<M> {
public interface IModelController {

public Optional<M> 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<M> readAll();
public List<?> readAll();

}

0 comments on commit e56e2a2

Please sign in to comment.