Back to project page Butler.
The source code is released under:
Apache License
If you think the Android project Butler 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.bingzer.android; // w w w . j a v a 2 s . co m public class Result<T extends Throwable> { private boolean success; private Throwable error; public Result(){ this(true, null); } public Result(T error){ this(false, error); } public Result(boolean success, Throwable error){ this.success = success; this.error = error; } public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public Throwable getError() { return error; } public void setError(Throwable error) { this.error = error; } }