[英]How to iterate over items from a Flux?
I need to iterate over a Flux and get object from the previous and the posterior position of a certain index. 我需要遍历Flux并从某个索引的先前位置和后位置获取对象。 Is this possible?
这可能吗? How can I implement this?
我该如何实施?
尝试类似:
yourFlux.collectList().flatMap(x -> { //here you can, for example, x.get(0); });
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.