Reactor – How to convert Flux into List, Map

Tutorial: “Flux to List – How to convert Reactor Flux to List/Map”

What is a Reactor Flux? A Flux is a Reactive Streams Publisher , augmented with a lot of operators that can be used to generate, transform, orchestrate Flux sequences. It can emit 0 to n elements ( onNext event) then either completes or errors ( onComplete and onError terminal events).
In this tutorial, I introduces ways to convert Reactor Flux into List/Map.

Related post:

Reactor – Handle Error
Reactor – How to Create Flux (Publisher) with Interval

Continue reading “Reactor – How to convert Flux into List, Map”

Java Sort List of Objects with Comparator

This tutorial shows you way to Sort List of Objects by implementing Comparator example.

Related Post: Java Sort List of Objects with Comparable

How to do this with Kotlin: Sort List of Objects with Comparator

Continue reading “Java Sort List of Objects with Comparator”

Java 9 Factory Method for Collections: List, Set, Map

Java 9 provides new static factory methods for creating instances of collections and maps conveniently with small number of elements. In this tutorial, we’re gonna look at how to create List, Set, Map with Java 9 Factory Method for Collections.

Continue reading “Java 9 Factory Method for Collections: List, Set, Map”

Java 8 – How to convert List to Map & Map to List

In the tutorial, JavaSampleApproach will guide you How to convert List to Map (Map to List) with Java 8.

Related Posts:
1. Java 8 – Lambda Expressions
2. Java 8 – Functional Interfaces
3. Java 8 – Method References

Continue reading “Java 8 – How to convert List to Map & Map to List”