From a1c26fd2a56bead698099bd5aac04dd7aeaba210 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Fri, 10 Sep 2021 21:24:47 +0300 Subject: Clarify ObservableView.ChangeListener parameters --- .../io/github/cottonmc/cotton/gui/widget/data/ObservableView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java index 8bad55c..5f6a33c 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java @@ -67,8 +67,8 @@ public interface ObservableView<T> extends Supplier<T> { * Handles a change in an observable property. * * @param property the changed property or view - * @param from the previous value - * @param to the new value + * @param from the previous value, or null if not set before + * @param to the new value, or null if cleared */ void onPropertyChange(ObservableView<? extends T> property, @Nullable T from, @Nullable T to); } -- cgit