Back to project page UniversalLoader.
The source code is released under:
Apache License
If you think the Android project UniversalLoader 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.michaelflisar.universalloader.data.main; /*from ww w . j a v a2s. c o m*/ public class ULResult { private Exception mException; private Object mResult; public ULResult(Object result) { mResult = result; mException = null; } public ULResult(Exception exception) { mResult = null; mException = exception; } @SuppressWarnings("unchecked") public <T> T get() { return (T) mResult; } public Exception getException() { return mException; } public boolean isValid() { return mException == null; } }