From 8ad223e5e1b46322afb3083d68be59338181f399 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 14 Oct 2017 15:31:03 +0200 Subject: [PATCH] Add base event class. --- app/build.gradle | 1 + .../java/info/nightscout/androidaps/events/Event.java | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 app/src/main/java/info/nightscout/androidaps/events/Event.java diff --git a/app/build.gradle b/app/build.gradle index 30158bf591..6d877e80a4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -150,6 +150,7 @@ dependencies { compile('com.github.tony19:logback-android-classic:1.1.1-6') { exclude group: 'com.google.android', module: 'android' } + compile 'org.apache.commons:commons-lang3:3.6' compile 'org.slf4j:slf4j-api:1.7.12' compile 'com.jjoe64:graphview:4.0.1' compile 'com.eclipsesource.j2v8:j2v8:3.1.6@aar' diff --git a/app/src/main/java/info/nightscout/androidaps/events/Event.java b/app/src/main/java/info/nightscout/androidaps/events/Event.java new file mode 100644 index 0000000000..dc35856253 --- /dev/null +++ b/app/src/main/java/info/nightscout/androidaps/events/Event.java @@ -0,0 +1,10 @@ +package info.nightscout.androidaps.events; + +import org.apache.commons.lang3.builder.ReflectionToStringBuilder; + +abstract class Event { + @Override + public String toString() { + return ReflectionToStringBuilder.toString(this); + } +}