I have a question about the two methods "suppressWhen(...)" and "filter(...)" if it makes any difference to use them in a context e.g:
I have a boolean property like:
BooleanProperty bp = new SimpleBooleanProperty();
and I have a stream of values like:
var.values()...
Is there any difference when I want to filter the stream if the BooleanProperty bp
is false like:
var.values().suppressWhen(bp.not())...
or
var.values().filter(val -> bp.getValue())...
OK its clear that "suppressWhen" creates an instance of "SuspendedWhenStream" and uses a "SuspendableEventStream" so maybe its better to ask what would make the most sense here?
Is it more non efficient that an extra "SuspendableEventStream" is created or something like that?