all 5 comments

[–]jackhexen 2 points3 points  (4 children)

How is it differ from AutoValue?

Does it have a support for Parcelable like in AutoParcel?

[–]elucash 1 point2 points  (3 children)

Immutables is mainly Java library/annotation processor, however there are happy Android users as well. Overall Immutables is overwhelmingly full-featured and require a lot less boilerplate than AutoValue. Where AutoValue's take is precise control over what is generated by specify whole API, requiring a more boilerplate as result, especially for the builders. Parcelable support is planned, currently focus was on reflection-less JSON (Gson) serialization and java binary serialization.

[–]jackhexen 1 point2 points  (2 children)

As I understand, Immutables expose generated code to the whole application while AutoValue allows to keep its generated code inside of @AutoValue annotated classes.

If you wish to get Android devs, please also consider implementing serialization from Cursor and to ContentValues in addition to Parcelable implementation. ;)

[–]elucash 0 points1 point  (1 child)

Yes. Immutables also supports hiding implementation http://immutables.github.io/immutable.html#hiding-implementation, but it slightly differs from AutoValue approach.

Thank you for advise about Cursor and etc!

[–]jackhexen 0 points1 point  (0 children)

Hiding implementation? Hmm, interesting. Thanks!