You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val isActive = user.get("active", Boolean::class.java)
125
+
126
+
println(user.toString())
127
+
```
128
+
92
129
## Using as HashMap Keys
93
130
94
131
### Using Tuple as a key
95
132
133
+
#### Java
134
+
96
135
Both `Tuple` and `NamedTuple` override `equals()` and `hashCode()`, making them perfectly suitable for use as keys in a `HashMap` or as elements in a `HashSet`.
97
136
98
137
Two tuples are considered equal if they contain the same elements in the same order. Two named tuples are equal if they contain the same key-value pairs.
0 commit comments