class References implements Parcelable, Iterable<Reference<T>> {

	@SuppressWarnings("unchecked")
	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeInt(ids.length);

		if (ids.length > 0) {
			for (int i = 0; i < ids.length; i++) {
				parcel.writeLong(ids[i]);
			}

			parcel.writeString(type.getName());
		}
	}

	public  References();
	public  References(Class<? extends T> type, long[] ids);

}