Created
April 23, 2017 10:51
-
-
Save Laimiux/2c196a4822178ba5ed7aa9a246f2075f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lce -> Loading / Content / Error | |
class Lce<T> { | |
public static <T> Lce<T> data(T data) { | |
// implementation | |
} | |
public static <T> Lce<T> error(Throwable error) { | |
// implementation | |
} | |
public static <T> Lce<T> loading() { | |
// implementation | |
} | |
boolean isLoading(); | |
boolean hasError(); | |
Throwable getError(); | |
T getData(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment