@thomasnield thomasnield released this Nov 24, 2017 · 6 commits to 2.x since this release

Assets 2

A series of nullable Binding factories has been built by @protogenes. These help workaround RxJava not allowing null emissions, which are often necessary for null states in JavaFX ObservableValues.

JavaFxObservable.toNullBinding()
JavaFxObservable.toNullableBinding()
JavaFxObservable.toLazyNullBinding()
JavaFxObservable.toLazyNullableBinding()
JavaFxSubscriber.toNullBinding()
JavaFxSubscriber.toNullableBinding()
JavaFxSubscriber.toLazyNullBinding()
JavaFxSubscriber.toLazyNullableBinding()

The toNullBinding() factories use a null sentinel value to represent null emissions, while toNullableBinding() factories leverage Optional<T> emissions and unwraps them in the Binding.

Thanks for your help @protogenes! An https://github.com/thomasnield/RxKotlinFX release will follow shortly.