package org.wikimedia.wikipedia;

/**
 * Value object representing the title of a page.
 *
 * Points to a specific page in a specific namespace on a specific site.
 * Is immutable.
 */
public class PageTitle {
    private final String namespace;
    private final String title;

    public PageTitle(final String namesapce, final String title) {
        this.namespace = namesapce;
        this.title = title; //FIXME: Actually normalize this!
    }

    public String getNamespace() {
        return namespace;
    }

    public String getTitle() {
        return title;
    }
}

@@ -31,16 +31,83 @@
 a;%0A%0A
-/**%0A * V
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A/**%0A * Immutable v
 alue
@@ -268,16 +268,38 @@
 geTitle 
+implements Parcelable 
 %7B%0A    pr
@@ -659,11 +659,675 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    public static final Parcelable.Creator%3CPageTitle%3E CREATOR%0A            = new Parcelable.Creator%3CPageTitle%3E() %7B%0A        public PageTitle createFromParcel(Parcel in) %7B%0A            return new PageTitle(in);%0A        %7D%0A%0A        public PageTitle%5B%5D newArray(int size) %7B%0A            return new PageTitle%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A    private PageTitle(Parcel in) %7B%0A        namespace = in.readString();%0A        title = in.readString();%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel parcel, int flags) %7B%0A        parcel.writeString(namespace);%0A        parcel.writeString(title);%0A    %7D
 %0A%7D%0A

Make PageTitle object parcelable