Back to project page android-model-record.
The source code is released under:
MIT License
If you think the Android project android-model-record 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.fanpics.opensource.android.modelrecord.event; /*from w ww . j a v a 2 s .com*/ public class SuccessEvent<T> { protected T result; private boolean resultLoaded = false; private boolean hasFinished; public SuccessEvent<T> setResult(T result) { this.result = result; if (!resultLoaded) { resultLoaded = result != null; } return this; } public T getResult() { return result; } public boolean resultHasLoaded() { return resultLoaded; } public void clearResult() { result = null; } public void setHasFinished(boolean hasFinished) { this.hasFinished = hasFinished; } public boolean hasFinished() { return hasFinished; } }