[Minor] Use ? extends StrolchRootElement in GenericReport
This commit is contained in:
parent
caeed3d670
commit
20cd71ab6a
|
@ -415,20 +415,20 @@ public class GenericReport extends ReportPolicy {
|
||||||
return Optional.ofNullable(param);
|
return Optional.ofNullable(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Stream<StrolchRootElement> queryRows() {
|
protected Stream<? extends StrolchRootElement> queryRows() {
|
||||||
|
|
||||||
StringParameter objectTypeP = this.reportRes.getParameter(BAG_PARAMETERS, PARAM_OBJECT_TYPE);
|
StringParameter objectTypeP = this.reportRes.getParameter(BAG_PARAMETERS, PARAM_OBJECT_TYPE);
|
||||||
|
|
||||||
// find the type of object for which the reportRes is created
|
// find the type of object for which the reportRes is created
|
||||||
switch (objectTypeP.getInterpretation()) {
|
switch (objectTypeP.getInterpretation()) {
|
||||||
|
|
||||||
case StrolchConstants.INTERPRETATION_RESOURCE_REF:
|
case StrolchConstants.INTERPRETATION_RESOURCE_REF:
|
||||||
|
|
||||||
return tx().getResourceMap().getElementsBy(tx(), objectTypeP.getUom()).stream()
|
return tx().getResourceMap().getElementsBy(tx(), objectTypeP.getUom()).stream();
|
||||||
.map(Resource::getRootElement);
|
|
||||||
|
|
||||||
case StrolchConstants.INTERPRETATION_ORDER_REF:
|
case StrolchConstants.INTERPRETATION_ORDER_REF:
|
||||||
|
|
||||||
return tx().getOrderMap().getElementsBy(tx(), objectTypeP.getUom()).stream().map(Order::getRootElement);
|
return tx().getOrderMap().getElementsBy(tx(), objectTypeP.getUom()).stream();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue