@@ -0,0 +1,2178 @@
+package com.markupartist.sthlmtraveling.planner;%0A%0Aimport android.location.Location;%0Aimport android.os.Parcel;%0Aimport android.os.Parcelable;%0Aimport android.text.TextUtils;%0A%0Apublic class Stop implements Parcelable %7B%0A    public static String TYPE_MY_LOCATION = %22MY_LOCATION%22;%0A    private String mName;%0A    private Location mLocation;%0A%0A    public Stop() %7B%0A    %7D%0A%0A    public Stop(String name) %7B%0A        mName = name;%0A    %7D%0A%0A    public Stop(String name, Location location) %7B%0A        mName = name;%0A        mLocation = location;%0A    %7D%0A%0A    public Stop(String name, double latitude, double longitude) %7B%0A        mName = name;%0A        mLocation = new Location(%22sthlmtraveling%22);%0A        mLocation.setLatitude(latitude);%0A        mLocation.setLongitude(longitude);%0A    %7D%0A%0A    public Stop(Parcel parcel) %7B%0A        mName = parcel.readString();%0A        mLocation = parcel.readParcelable(null);%0A    %7D%0A%0A    /**%0A     * Create a new Stop that is a copy of the given Stop.%0A     * @param stop the stop%0A     */%0A    public Stop(Stop stop) %7B%0A        mName = stop.getName();%0A        mLocation = stop.getLocation();%0A    %7D%0A%0A    public String getName() %7B%0A        return mName;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        mName = name;%0A    %7D%0A%0A    public boolean hasName() %7B%0A        return !TextUtils.isEmpty(mName);%0A    %7D%0A    %0A    public void setLocation(Location location) %7B%0A        mLocation = location;%0A    %7D%0A%0A    public Location getLocation() %7B%0A        return mLocation;%0A    %7D%0A%0A    public boolean isMyLocation() %7B%0A        return mName.equals(TYPE_MY_LOCATION);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Stop %5BmLocation=%22 + mLocation + %22, mName=%22 + mName + %22%5D%22;%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel parcel, int i) %7B%0A        parcel.writeString(mName);%0A        parcel.writeParcelable(mLocation, 0);%0A    %7D%0A%0A    public static final Creator%3CStop%3E CREATOR = new Creator%3CStop%3E() %7B%0A        public Stop createFromParcel(Parcel parcel) %7B%0A            return new Stop(parcel);%0A        %7D%0A%0A        public Stop%5B%5D newArray(int size) %7B%0A            return new Stop%5Bsize%5D;%0A        %7D%0A    %7D;%0A%7D%0A

representation of a Stop