Skip to content

Instantly share code, notes, and snippets.

@olegflo
Last active December 12, 2015 04:19
Show Gist options
  • Save olegflo/4713711 to your computer and use it in GitHub Desktop.
Save olegflo/4713711 to your computer and use it in GitHub Desktop.
Parcelable Live Template for Idea
public final static Parcelable.Creator<$CLASS_NAME$> CREATOR = new Parcelable.Creator<$CLASS_NAME$>() {
@Override
public $CLASS_NAME$[] newArray(int size) {
return new $CLASS_NAME$[size];
}
@Override
public $CLASS_NAME$ createFromParcel(Parcel source) {
return new $CLASS_NAME$(source);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment