From f372b92856378aa819cea0968937fdf8e121ede3 Mon Sep 17 00:00:00 2001 From: Bruno Salmon Date: Thu, 2 May 2024 12:48:10 +0100 Subject: [PATCH] Changed ObservableLists.isEmpty() return value type to BooleanExpression --- .../java/dev/webfx/kit/util/properties/ObservableLists.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webfx-kit/webfx-kit-util/src/main/java/dev/webfx/kit/util/properties/ObservableLists.java b/webfx-kit/webfx-kit-util/src/main/java/dev/webfx/kit/util/properties/ObservableLists.java index 8093494b4..38e95d042 100644 --- a/webfx-kit/webfx-kit-util/src/main/java/dev/webfx/kit/util/properties/ObservableLists.java +++ b/webfx-kit/webfx-kit-util/src/main/java/dev/webfx/kit/util/properties/ObservableLists.java @@ -4,8 +4,8 @@ import dev.webfx.platform.util.Objects; import dev.webfx.platform.util.collection.Collections; import dev.webfx.platform.util.function.Converter; +import javafx.beans.binding.BooleanExpression; import javafx.beans.property.SimpleBooleanProperty; -import javafx.beans.value.ObservableBooleanValue; import javafx.collections.ListChangeListener; import javafx.collections.ObservableList; @@ -67,7 +67,7 @@ public static void runOnListChange(ListChangeListener listener, Observabl list.addListener(listener); } - public static ObservableBooleanValue isEmpty(ObservableList list) { + public static BooleanExpression isEmpty(ObservableList list) { SimpleBooleanProperty isEmpty = new SimpleBooleanProperty(list.isEmpty()); runOnListChange(c -> isEmpty.setValue(list.isEmpty()), list); return isEmpty;