Showing
1 changed file
with
8 additions
and
0 deletions
1 | package org.onlab.onos.event; | 1 | package org.onlab.onos.event; |
2 | 2 | ||
3 | +import static com.google.common.base.MoreObjects.toStringHelper; | ||
4 | + | ||
3 | /** | 5 | /** |
4 | * Base event implementation. | 6 | * Base event implementation. |
5 | */ | 7 | */ |
... | @@ -48,4 +50,10 @@ public class AbstractEvent<T extends Enum, S extends Object> implements Event<T, | ... | @@ -48,4 +50,10 @@ public class AbstractEvent<T extends Enum, S extends Object> implements Event<T, |
48 | return subject; | 50 | return subject; |
49 | } | 51 | } |
50 | 52 | ||
53 | + @Override | ||
54 | + public String toString() { | ||
55 | + return toStringHelper(this).add("time", time).add("type", type()) | ||
56 | + .add("subject", subject()).toString(); | ||
57 | + } | ||
58 | + | ||
51 | } | 59 | } | ... | ... |
-
Please register or login to post a comment