Code example for Parcel

Methods: readList

0
public class ParcelableList implements Parcelable {
    public static final Parcelable.Creator<ParcelableList> CREATOR
    = new Parcelable.Creator<ParcelableList>() { 
        public ParcelableList createFromParcel(Parcel src) { 
            List<List<String>> l = new ArrayList<List<String>>(); 
            src.readList(l, null); 
            return new ParcelableList(l); 
        } 
 
        public ParcelableList[] newArray(int size) { 
            return new ParcelableList[size]; 
        } 
    }; 
 
 
    private List<List<String>> list;
     
    public ParcelableList(List<List<String>> list) {
        this.list = list;
    } 
Experience pair programming with AI  Get Codota for Java