Code example for Time

Methods: format2445

0
 
    @Override 
    public void writeToParcel(Parcel dest, int flags) {
        //dest.writeParcelable(mStartPoint, 0); 
        //dest.writeParcelable(mEndPoint, 0); 
        dest.writeString(mTime.format2445());
        dest.writeInt(mIsTimeDeparture ? 1 : 0);
        dest.writeTypedList(mStartPointAlternatives);
        dest.writeTypedList(mEndPointAlternatives);
        dest.writeTypedList(mRoutes);
    } 
 
    public static final Creator<Trip> CREATOR = new Creator<Trip>() {
        public Trip createFromParcel(Parcel parcel) { 
            return new Trip(parcel); 
        } 
 
        public Trip[] newArray(int size) { 
            return new Trip[size]; 
        } 
    };