Code example for Parcel

Methods: readList, readString

0
        this.mName = device.getName();
        this.mUrl = device.getUrl();
    } 
     
    public ExtendedDevice(Parcel source) {
        this.mName = source.readString();
        this.mUrl = source.readString();
        source.readList(this.mRecoveryList, ExtendedDevice.class.getClassLoader());
    } 
 
    public String getName() {
        return mName;
    } 
 
    public String getUrl() {
        return mUrl;
    } 
 
    public List<Recovery> getRecoveries() {
        return mRecoveryList;
    }