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
|
|
|
|
2017-10-14 16:19:36 +02:00
|
|
|
/** Base class for all events posted on the event bus. */
|
2017-10-14 16:06:01 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|