org.jboss.aerogear.android.pipeline
Class AbstractCallback<T>
java.lang.Object
org.jboss.aerogear.android.pipeline.AbstractCallback<T>
- All Implemented Interfaces:
- Serializable, Callback<T>
- Direct Known Subclasses:
- AbstractActivityCallback, AbstractFragmentActivityCallback, AbstractFragmentCallback, AbstractSupportFragmentCallback
public abstract class AbstractCallback<T>
- extends Object
- implements Callback<T>
This class provides a hashcode method for a callback based on constructor
parameters. This callback is meant to be used in conjuction with
Activities/Fragments and LoaderPipes.
Using this class instead of an anonymous Callback will allow your application
to persist results from loaders through configuration changes.
- See Also:
- Serialized Form
|
Constructor Summary |
AbstractCallback(Object... params)
This accepts an arbitrary list of Object and uses Objects to
generate a hashcode. |
AbstractCallback
public AbstractCallback(Object... params)
- This accepts an arbitrary list of Object and uses
Objects to
generate a hashcode. This code is used to provided the loader manager
with a unique value to determine uniqueness of calls to read, etc.
- Parameters:
params -
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.