Дженерик в интерфейс репозиториев юнита

This commit is contained in:
Mark Struchkov 2019-01-21 10:16:30 +03:00
parent 233d44f939
commit 6bfacc12e4
2 changed files with 5 additions and 7 deletions

View File

@ -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>

View File

@ -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();
}