Дженерик в интерфейс репозиториев юнита
This commit is contained in:
parent
233d44f939
commit
6bfacc12e4
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.sadtech.autoresponder</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.1.1-RELEASE</version>
|
||||
<version>1.1.2-SNAPHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -5,14 +5,12 @@ import org.sadtech.autoresponder.entity.Unit;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public interface UnitRepository {
|
||||
public interface UnitRepository<T extends Unit> {
|
||||
|
||||
void addUnit(Unit unit);
|
||||
void addUnit(T unit);
|
||||
|
||||
void addUnits(Collection<Unit> units);
|
||||
void addUnits(Collection<T> units);
|
||||
|
||||
void removeUnit(Unit idUnit);
|
||||
|
||||
List<Unit> menuUnits();
|
||||
List<T> menuUnits();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user