来源是这样的:
public class NavUIStatus implements Parcelable {
public static final Creator<NavUIStatus> CREATOR = new
Creator<NavUIStatus()
{
public NavUIStatus createFromParcel(Parcel in) {
return new NavUIStatus(in);
}
public NavUIStatus[] newArray(int size) {
return new NavUIStatus[size];
}
};
private NavUIStatus(Parcel in){
...
in.readTypedList(this.laneInfos, LaneInfo.CREATOR);
}
}
并且在android studio中反编译此类时,该类显示为:
public class NavUIStatus implements Parcelable {
public static final Creator<NavUIStatus> CREATOR = new Creator() {
public NavUIStatus createFromParcel(Parcel in) {
return new NavUIStatus(in, null);
}
public NavUIStatus[] newArray(int size) {
return new NavUIStatus[size];
}
};
}
那么,为什么NavUIStatus中有null参数(in,null)?
感谢。