title: Parcel List of List of Parcelable object
body: <p>So I've parceled lists before, however I'm trying to parcel my <code>GameBoard</code> object, which actually has a <code>List&lt;List&lt;Tile&gt;&gt;</code>.  <code>Tile</code> implements parcelable, but I'm not sure exactly how to parcel the <code>List&lt;List&gt;</code>.  Here's what I've tried:</p>
  
  <pre><code>public class GameBoard implements Parcelable {
      private String _id;
      public String getId() { return _id; }
      public void setId(String id) { _id = id; }
  
      private List&lt;List&lt;Tile&gt;&gt; _tiles;
      public List&lt;List&lt;Tile&gt;&gt; getTiles() { return _tiles; }
      public void setTiles(List&lt;List&lt;Tile&gt;&gt; tiles) { _tiles = tiles; }
  
      public GameBoard(Parcel in) {
          _id = in.readString();
          in.readList(_tiles, ArrayList.class.getClassLoader());
      }
  
      public GameBoard() {
  
      }
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel parcel, int i) {
          parcel.writeString(_id);
          parcel.writeList(_tiles);
      }
  
      public static final Parcelable.Creator&lt;GameBoard&gt; CREATOR = new Parcelable.Creator&lt;GameBoard&gt;() {
          public GameBoard createFromParcel(Parcel in) {
              return new GameBoard(in);
          }
  
          public GameBoard[] newArray(int size) {
              return new GameBoard[size];
          }
      };
  </code></pre>
  
  <p>The tile class correctly implements parcelable, I'm just not exactly sure how to read / write the <code>List&lt;List&gt;&gt;</code> when parceling this class.  Any ideas?</p>