@@ -65,67 +65,76 @@ trait Subject[T] extends Observable[T] with Observer[T] {
6565 }
6666
6767 /**
68- * $experimental Check if the Subject has terminated with an exception.
69- * <p>The operation is threadsafe.
68+ * $experimental Check if the [[Subject ]] has terminated with an exception.
7069 *
71- * @return `true` if the subject has received a throwable through { @code onError}.
70+ * The operation is threadsafe.
71+ *
72+ * @return `true` if the [[Subject ]] has received a throwable through `onError`.
7273 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
7374 */
7475 @ Experimental
7576 def hasThrowable : Boolean = asJavaSubject.hasThrowable
7677
7778 /**
78- * $experimental Check if the Subject has terminated normally.
79- * <p>The operation is threadsafe.
79+ * $experimental Check if the [[Subject ]] has terminated normally.
80+ *
81+ * The operation is threadsafe.
8082 *
81- * @return `true` if the subject completed normally via { @code onCompleted}
83+ * @return `true` if the [[ Subject ]] completed normally via ` onCompleted`
8284 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
8385 */
8486 @ Experimental
8587 def hasCompleted : Boolean = asJavaSubject.hasCompleted
8688
8789 /**
88- * $experimental Returns the Throwable that terminated the Subject.
89- * <p>The operation is threadsafe.
90+ * $experimental Returns the `Throwable` that terminated the [[Subject ]].
91+ *
92+ * The operation is threadsafe.
9093 *
91- * @return the Throwable that terminated the Subject or { @code null} if the subject hasn't terminated yet or
92- * if it terminated normally.
94+ * @return the ` Throwable` that terminated the [[ Subject ]] or ` null` if the subject hasn't terminated yet or
95+ * if it terminated normally.
9396 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
9497 */
9598 @ Experimental
9699 def getThrowable : Throwable = asJavaSubject.getThrowable
97100
98101 /**
99- * $experimental Check if the Subject has any value.
100- * <p>Use the `#getValue()` method to retrieve such a value.
101- * <p>Note that unless `#hasCompleted()` or `#hasThrowable()` returns true, the value
102- * retrieved by `getValue()` may get outdated.
103- * <p>The operation is threadsafe.
102+ * $experimental Check if the [[Subject ]] has any value.
103+ *
104+ * Use the [[Subject.getValue ]] method to retrieve such a value.
105+ *
106+ * Note that unless [[Subject.hasCompleted ]] or [[Subject.hasThrowable ]] returns true, the value
107+ * retrieved by [[Subject.getValue ]] may get outdated.
104108 *
105- * @return { @code true} if and only if the subject has some value but not an error
109+ * The operation is threadsafe.
110+ *
111+ * @return `true` if and only if the [[Subject ]] has some value but not an error
106112 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
107113 */
108114 @ Experimental
109115 def hasValue : Boolean = asJavaSubject.hasValue
110116
111117 /**
112- * $experimental Returns the current or latest value of the Subject if there is such a value and
118+ * $experimental Returns the current or latest value of the [[ Subject ]] if there is such a value and
113119 * the subject hasn't terminated with an exception.
114- * <p>The method can return `null` for various reasons. Use `#hasValue()`, `#hasThrowable()`
115- * and `#hasCompleted()` to determine if such `null` is a valid value, there was an
116- * exception or the Subject terminated without receiving any value.
117- * <p>The operation is threadsafe.
118120 *
119- * @return the current value or { @code null} if the Subject doesn't have a value, has terminated with an
120- * exception or has an actual { @code null} as a value.
121+ * The method can return `null` for various reasons. Use [[Subject.hasValue ]], [[Subject.hasThrowable ]]
122+ * and [[Subject.hasCompleted ]] to determine if such `null` is a valid value, there was an
123+ * exception or the [[Subject ]] terminated without receiving any value.
124+ *
125+ * The operation is threadsafe.
126+ *
127+ * @return the current value or `null` if the [[Subject ]] doesn't have a value, has terminated with an
128+ * exception or has an actual `null` as a value.
121129 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
122130 */
123131 @ Experimental
124132 def getValue : T = asJavaSubject.getValue.asInstanceOf [T ]
125133
126134 /**
127135 * $experimental Returns a snapshot of the currently buffered non-terminal events.
128- * <p>The operation is threadsafe.
136+ *
137+ * The operation is threadsafe.
129138 *
130139 * @return a snapshot of the currently buffered non-terminal events.
131140 * @since (If this graduates from being an Experimental class method, replace this parenthetical with the release number)
0 commit comments