Code example for Parcel

Methods: readBundle, readInt, readSerializable, readString

0
        return Objects.hashCode(name, clazz);
    } 
     
    public static final Parcelable.Creator<FragmentElement> CREATOR = new Parcelable.Creator<FragmentElement>() {
        public FragmentElement createFromParcel(Parcel in) { 
            return new FragmentElement(in.readString(), in.readInt(), (Class<?>)in.readSerializable(), in.readBundle()); 
        } 
        public FragmentElement[] newArray(int size) { 
            return new FragmentElement[size]; 
        } 
    }; 
}