Skip to content

Suggestion for API change to remove more boilerplate #11

Description

@mg6maciej

I like that you don't have a subclass like in Parceler and other similar libraries.

How about changing the code you have to write to something like code below?

@ParcelablePlease
public class Model implements Parcelable {

  int id;
  String name;
  OtherModel otherModel;

  @Override public int describeContents() {
    return 0;
  }

  @Override public void writeToParcel(Parcel dest, int flags) {
    ModelParcelablePlease.writeToParcel(this, dest, flags);
  }

  public static final Creator<Model> CREATOR = ModelParcelablePlease.creator();
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions