AndroidAPS/app/src/main/java/info/nightscout/androidaps/events/Event.java

17 lines
470 B
Java
Raw Normal View History

2017-10-14 15:31:03 +02:00
package info.nightscout.androidaps.events;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
2017-10-14 16:29:33 +02:00
import org.apache.commons.lang3.builder.ToStringStyle;
2017-10-14 15:31:03 +02:00
/** Base class for all events posted on the event bus. */
public abstract class Event {
2017-10-14 16:29:33 +02:00
static {
ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
}
2017-10-14 15:31:03 +02:00
@Override
public String toString() {
return ReflectionToStringBuilder.toString(this);
}
}