File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/util Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com.google.firebase.dataconnect.util
1717
18- internal class NullableReference <T >(val ref : T ? = null ) {
18+ /* *
19+ * A class that simply wraps a reference to another object, possibly a null reference. Instances of
20+ * this class can be useful for the case where the meaning of `null` is overloaded, such as
21+ * [kotlinx.coroutines.flow.MutableStateFlow.compareAndSet].
22+ */
23+ internal class NullableReference <out T >(val ref : T ? = null ) {
1924 override fun equals (other : Any? ) = (other is NullableReference <* >) && other.ref == ref
2025 override fun hashCode () = ref?.hashCode() ? : 0
2126 override fun toString () = ref?.toString() ? : " null"
You can’t perform that action at this time.
0 commit comments