Back to project page screenplay.
The source code is released under:
MIT License
If you think the Android project screenplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.davidstemmer.screenplay.scene.component; // w w w.j av a2 s. c om /** * Created by weefbellington on 11/10/14. */ public class ResultHandler<R> { private final R defaultResult; private R result; public ResultHandler(R defaultResult) { this.defaultResult = defaultResult; this.result = defaultResult; } public void setResult(R result) { this.result = result; } public R getResult() { return result; } public void reset() { this.result = defaultResult; } }