We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0fa941 + 8aa339a commit 537fffdCopy full SHA for 537fffd
reactfx/src/main/java/org/reactfx/value/Val.java
@@ -123,6 +123,15 @@ default EventStream<T> values() {
123
return EventStreams.valuesOf(this);
124
}
125
126
+ /**
127
+ * Returns a stream of non-null values of this {@linkplain Val}. The returned stream
128
+ * emits the current value of this {@linkplain Val} if it is not null for each new subscriber
129
+ * and then the new value if it is not null whenever the value changes.
130
+ */
131
+ default EventStream<T> nonNullValues() {
132
+ return EventStreams.nonNullValuesOf(this);
133
+ }
134
+
135
/**
136
* Checks whether this {@linkplain Val} holds a (non-null) value.
137
* @return {@code true} if this {@linkplain Val} holds a (non-null) value,
0 commit comments