aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/data/ObservableView.java6
1 files changed, 6 insertions, 0 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 4bc2b9f..c670c07 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
@@ -4,6 +4,12 @@ import org.jetbrains.annotations.Nullable;
import java.util.function.Supplier;
+/**
+ * A read-only {@linkplain ObservableProperty observable property}.
+ *
+ * @param <T> the contained value type
+ * @since 4.2.0
+ */
public interface ObservableView<T> extends Supplier<T> {
/**
* Adds a change listener to this property view.