-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-hydration from previous state #73
Comments
This sounds reasonable. I really dislike the method name Since this lib is inspired from Dropwizard see: https://github.com/dropwizard/metrics/blob/4.1-development/metrics-core/src/main/java/com/codahale/metrics/Gauge.java#L25 So maybe the static initializer could be |
recreating the internal representation is harder than I expected, there are too many moving parts (new class instances, and their internals as well) |
Right now, I'm accessing the "private" members directly, and assigning them manually. would be good to have an static method, like
fromJSON(theOneReturnedFromtoJSON)
to initialize the classes using a previous state.The text was updated successfully, but these errors were encountered: