[Minor] StrolchRootElementListResult with ? generics

This commit is contained in:
Robert von Burg 2020-06-23 16:23:49 +02:00
parent 8a315138e7
commit 926fc10607
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import li.strolch.service.api.ServiceResultState;
public class StrolchRootElementListResult extends ServiceResult {
private List<StrolchRootElement> rootElements;
private List<? extends StrolchRootElement> rootElements;
public StrolchRootElementListResult(ServiceResultState state) {
super(state);
@ -18,12 +18,12 @@ public class StrolchRootElementListResult extends ServiceResult {
super(state, msg);
}
public StrolchRootElementListResult(List<StrolchRootElement> rootElements) {
public StrolchRootElementListResult(List<? extends StrolchRootElement> rootElements) {
super(ServiceResultState.SUCCESS);
this.rootElements = rootElements;
}
public List<StrolchRootElement> getRootElements() {
public List<? extends StrolchRootElement> getRootElements() {
return this.rootElements;
}
}