java.lang.Object
io.github.palexdev.materialfx.utils.FXCollectors
Convenience class that offers some methods useful on combination with Java
Stream
to collect to JavaFX's collections.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collector<T,?, ObservableList<T>> toList()static <T,K, U> Collector<T, ?, ObservableMap<K, U>> static <T> Collector<T,?, ObservableSet<T>> toSet()
-
Method Details
-
toSet
- Returns:
- a collector that returns an
ObservableSet
-
toList
- Returns:
- a collector that returns an
ObservableList
-
toMap
public static <T,K, Collector<T,U> ?, toMapObservableMap<K, U>> (Function<T, K> keyMapper, Function<T, U> valueMapper) - Returns:
- a collector that returns an
ObservableMap
-