
com.cookingfox.eventbus.testable.PostedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbus-adapter-java Show documentation
Show all versions of eventbus-adapter-java Show documentation
The EventBus Adapter wraps various EventBus implementations for Java and Android.
package com.cookingfox.eventbus.testable;
/**
* Wraps a posted event and its subscriber. Useful for checking which subscribers accepted an event.
*/
public class PostedEvent {
public final Object event;
public final Object subscriber;
public PostedEvent(Object event, Object subscriber) {
this.event = event;
this.subscriber = subscriber;
}
public Object getEvent() {
return event;
}
public Object getSubscriber() {
return subscriber;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy