/** * Populates a list and discards the internal state of the ParceledListSlice in the process. The * instance should not be used anymore. * * @param list list to insert items from this slice. * @param creator creator that knows how to unparcel the target object type. * @return the last item inserted into the list or null if none. */ @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:34:55.748 -0500", hash_original_method = "C11B1153BF8BCDA44C4073AC785F824F", hash_generated_method = "31DE1676A7D3BC3BC9911CB72FB32E4D") public T populateList(List<T> list, Creator<T> creator) { mParcel.setDataPosition(0); T item = null; for (int i = 0; i < mNumItems; i++) { item = creator.createFromParcel(mParcel); list.add(item); } mParcel.recycle(); mParcel = null; return item; }