Top Description Fields Constructors Methods
com.dlsc.gemsfx.binding

public Class FlattenedNestedListStreamBinding<T>

extends AbstractNestedListBinding<T, Stream<T>>
Class Inheritance
Type Parameters
<T>
the type of the elements contained within the nested lists
Imports
javafx.collections.ObservableList, java.util.stream.Stream

Binds a nested structure of ObservableList<ObservableList<T>> to a flattened Stream<T>. This binding class listens for changes in the nested lists and provides a continuously updated stream that represents the flattened view of these lists. This stream can be used for further processing such as collecting into lists, sets, or applying transformations.

Each call to getValue() will provide a new stream based on the current state of the nested lists.

Field Summary

Inherited from com.dlsc.gemsfx.binding.AbstractNestedListBinding:
source

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Stream<T>

Returns:

The flattened stream of all elements.
computeValue
()

Implements abstract javafx.beans.binding.ObjectBinding.computeValue.

Computes the value of the binding by flattening all elements contained within the source nested lists into a single stream.

Inherited from com.dlsc.gemsfx.binding.AbstractNestedListBinding:
disposeflattenSourceinitListeners

Constructor Detail

FlattenedNestedListStreamBindingback to summary
public FlattenedNestedListStreamBinding(ObservableList<ObservableList<T>> source)

Method Detail

computeValueback to summary
protected Stream<T> computeValue()

Implements abstract javafx.beans.binding.ObjectBinding.computeValue.

Computes the value of the binding by flattening all elements contained within the source nested lists into a single stream. This method provides a stream of all elements, which can be collected or further processed by the consumer as needed.

Returns:Stream<T>

The flattened stream of all elements.

Annotations
@Override