Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-09-10 12:21:23 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1a176033534807a7350f259b0b553ec70234bb1d
1a176033
1 parent
0633d68d
Added toString to abstract event.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/event/AbstractEvent.java
core/api/src/main/java/org/onlab/onos/event/AbstractEvent.java
View file @
1a17603
package
org
.
onlab
.
onos
.
event
;
import
static
com
.
google
.
common
.
base
.
MoreObjects
.
toStringHelper
;
/**
* Base event implementation.
*/
...
...
@@ -48,4 +50,10 @@ public class AbstractEvent<T extends Enum, S extends Object> implements Event<T,
return
subject
;
}
@Override
public
String
toString
()
{
return
toStringHelper
(
this
).
add
(
"time"
,
time
).
add
(
"type"
,
type
())
.
add
(
"subject"
,
subject
()).
toString
();
}
}
...
...
Please
register
or
login
to post a comment