Skip to content

Instantly share code, notes, and snippets.

View MateuszNaKodach's full-sized avatar
🇵🇱
Blogging in Polish on NaKodach.PL

Mateusz Nowak MateuszNaKodach

🇵🇱
Blogging in Polish on NaKodach.PL
View GitHub Profile
public class RealmListParcelConverter implements TypeRangeParcelConverter<RealmList<? extends RealmObject>, RealmList<? extends RealmObject>> {
private static final int NULL = -1;
@Override
public void toParcel(RealmList<? extends RealmObject> input, Parcel parcel) {
if (input == null) {
parcel.writeInt(NULL);
} else {
parcel.writeInt(input.size());
for (RealmObject item : input) {