Back to project page rxloader.
The source code is released under:
Apache License
If you think the Android project rxloader 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 me.tatarka.rxloader; /* w w w . j ava 2 s . co m*/ import android.os.Bundle; import android.os.Parcelable; /** * A default implementation of {@link me.tatarka.rxloader.SaveCallback} that saves and restores an * object that is {@link android.os.Parcelable}. * * @param <T> the value type */ public class ParcelableSaveCallback<T> implements SaveCallback<T> { @Override public void onSave(String key, T value, Bundle outState) { outState.putParcelable(key, (Parcelable) value); } @Override public T onRestore(String key, Bundle savedState) { return (T) savedState.getParcelable(key); } }