use of org.openlca.util.Strings in project olca-modules by GreenDelta.
the class FlowMapService method getAll.
@Override
public void getAll(Empty req, StreamObserver<ProtoFlowMapName> resp) {
new MappingFileDao(db).getNames().stream().sorted(Strings::compare).map(name -> ProtoFlowMapName.newBuilder().setName(name).build()).forEach(resp::onNext);
resp.onCompleted();
}
Aggregations