aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 21:24:47 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-09-10 21:24:47 +0300
commita1c26fd2a56bead698099bd5aac04dd7aeaba210 (patch)
tree0f57290c9277f5bce8a7460ac8b9a75031a53700
parent3aeb0b08a2b243a6318fe2459a395b258544e9e8 (diff)
downloadLibGui-a1c26fd2a56bead698099bd5aac04dd7aeaba210.tar.gz
LibGui-a1c26fd2a56bead698099bd5aac04dd7aeaba210.tar.bz2
LibGui-a1c26fd2a56bead698099bd5aac04dd7aeaba210.zip
Clarify ObservableView.ChangeListener parameters
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java4
1 files changed, 2 insertions, 2 deletions
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);
}