ValueState could use an initial/default value
Open
core
good first issue
improvement
java
P3
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
In writing example state code with `ValueState` there is almost always a use of `firstNonNull(state.read(), defaultValue)`. It would be nice to bake this into the declaration.
Imported from Jira [BEAM-1335](https://issues.apache.org/jira/browse/BEAM-1335). Original Jira may contain additional context.
Reported by: kenn.
Contributor guide
Assessment
This issue has not been assessed yet.