/**
 * Copyright 2009 Joe LaPenna
 */

package com.joelapenna.foursquare.types;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author Joe LaPenna (joe@joelapenna.com)
 */
public class Group extends ArrayList<FoursquareType> implements Parcelable, FoursquareType {

    private static final long serialVersionUID = 1L;

    private String mType;

    public void setType(String type) {
        mType = type;
    }

    public String getType() {
        return mType;
    }

    /* For Parcelable */

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this);
        dest.writeString(this.mType);
    }

    public static final Parcelable.Creator<Group> CREATOR = new Parcelable.Creator<Group>() {

        @Override
        public Group createFromParcel(Parcel source) {
            Group instance = new Group();
            source.readList(instance, null);
            instance.setType(source.readString());
            return instance;
        }

        @Override
        public Group[] newArray(int size) {
            return new Group[size];
        }

    };
}

@@ -78,65 +78,8 @@
 s;%0A%0A
-import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 impo
@@ -222,20 +222,8 @@
 ents
- Parcelable,
  Fou
@@ -447,716 +447,7 @@
    %7D
-%0A%0A    /* For Parcelable */%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeList(this);%0A        dest.writeString(this.mType);%0A    %7D%0A%0A    public static final Parcelable.Creator%3CGroup%3E CREATOR = new Parcelable.Creator%3CGroup%3E() %7B%0A%0A        @Override%0A        public Group createFromParcel(Parcel source) %7B%0A            Group instance = new Group();%0A            source.readList(instance, null);%0A            instance.setType(source.readString());%0A            return instance;%0A        %7D%0A%0A        @Override%0A        public Group%5B%5D newArray(int size) %7B%0A            return new Group%5Bsize%5D;%0A        %7D%0A%0A    %7D;
 %0A%7D%0A

Remove unused parcelable stuff in Group.