public class StateMemoizer extends Object implements Serializable
apply().| Constructor and Description |
|---|
StateMemoizer(Object delegate,
Class<?>... interfaces)
Creates the memoizer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Calls all setters again on
delegate. |
Object |
getProxy()
Setters invoked on this proxy will have the args remembered; the methods invocations
will then be passed on to
delegate. |
public StateMemoizer(Object delegate, Class<?>... interfaces)
getProxy() in
order for this to work.delegate - pass-through the setters here.interfaces - used to create the memoizing proxy.Copyright © 2020–2024 Flowing Code. All rights reserved.