Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.tmz.model; // w ww . ja va 2 s . c o m import android.os.Parcel; import android.os.Parcelable; /** * Holds a factory. Implements part of the {@code Parcelable} interface. */ abstract class TMZFactoryHolder implements Parcelable { private final TMZAdapter factory; TMZFactoryHolder(TMZAdapter factory) { this.factory = factory; } TMZFactoryHolder(Parcel in) { this((TMZAdapter) in.readParcelable(TMZContent.class.getClassLoader())); } /** Returns the factory to create TMZ items and nodes. */ protected final TMZAdapter getFactory() { return factory; } @Override public int describeContents() { return 0; } @Override public final void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(factory, flags); writeToParcelAfterFactory(dest, flags); } /** Subclasses should implement this to write the contents after the factory. */ protected abstract void writeToParcelAfterFactory(Parcel dest, int flags); }