Back to project page RobolectricSample.
The source code is released under:
MIT License
If you think the Android project RobolectricSample 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.pivotallabs; /*from ww w . j a va 2s.c o m*/ public class MultiCallbacks extends Callbacks{ private Callbacks[] callbacks; public MultiCallbacks(Callbacks... callbacks) { this.callbacks = callbacks; } @Override public void onStart() { for (Callbacks callback : callbacks) { callback.onStart(); } } @Override public void onSuccess() { for (Callbacks callback : callbacks) { callback.onSuccess(); } } @Override public void onFailure() { for (Callbacks callback : callbacks) { callback.onFailure(); } } @Override public void onComplete() { for (Callbacks callback : callbacks) { callback.onComplete(); } } }