Code example for Parcel

Methods: writeArray, writeInt, writeList, writeLong

0
	 * Writing current data to parcel. 
	 * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int) 
	 */ 
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		out.writeList(fromStation);
		out.writeList(toStation);
		out.writeLong(departure);
		out.writeLong(arrival);
		out.writeInt(advancedOptionsEnabled ? 1 : 0);
		/*out.writeInt(preferDirect ? 1 : 0); 
		out.writeInt(avoidWalking ? 1 : 0);*/ 
		out.writeInt(changePunish);
		out.writeInt(changeMargin);
		out.writeInt(proposals);
		out.writeArray(transportTypes);
	} 
	 
	/* 
	 * Used for bundle.getParcel  
	 */