AeroGear Android Library 1.1.0

org.jboss.aerogear.android.pipeline
Class AbstractCallback<T>

java.lang.Object
  extended by 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.
 
Method Summary
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.aerogear.android.Callback
onFailure, onSuccess
 

Constructor Detail

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 -
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.