Skip to content

Instantly share code, notes, and snippets.

@user-mw
Created December 11, 2019 18:06
Show Gist options
  • Select an option

  • Save user-mw/b3c446523e11a31ca862a30a57c78bc9 to your computer and use it in GitHub Desktop.

Select an option

Save user-mw/b3c446523e11a31ca862a30a57c78bc9 to your computer and use it in GitHub Desktop.
ViewModel class 2019
public abstract class ViewModel {
protected void onCleared() { // Code }
final void clear() { // Code }
<T> T setTagIfAbsent(String key, T newValue) { // Code }
<T> T getTag(String key) { // Code }
private static void closeWithRuntimeException(Object obj) {
// Code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment