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
Yuta HIGUCHI
2014-10-06 14:41:54 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d2266a70f78c0d40f8ecea39bb484a3bb72318e2
d2266a70
1 parent
b4758a9f
added toString
Change-Id: I5ea98752b3f753eb398c83616afae11305d84e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
core/store/dist/src/main/java/org/onlab/onos/store/common/impl/Timestamped.java
core/store/dist/src/main/java/org/onlab/onos/store/common/impl/Timestamped.java
View file @
d2266a7
...
...
@@ -6,6 +6,8 @@ import java.util.Objects;
import
org.onlab.onos.store.Timestamp
;
import
com.google.common.base.MoreObjects
;
/**
* Wrapper class to store Timestamped value.
* @param <T>
...
...
@@ -70,6 +72,14 @@ public final class Timestamped<T> {
return
Objects
.
equals
(
this
.
timestamp
,
that
.
timestamp
);
}
@Override
public
String
toString
()
{
return
MoreObjects
.
toStringHelper
(
getClass
())
.
add
(
"timestamp"
,
timestamp
)
.
add
(
"value"
,
value
)
.
toString
();
}
// Default constructor for serialization
@Deprecated
protected
Timestamped
()
{
...
...
Please
register
or
login
to post a comment