T
- the type of the Object
which has a timestamp (associated)class Timestamped<T> extends Object
Object
with a timestamp.Modifier and Type | Field and Description |
---|---|
(package private) T |
o
The
Object associated with timestamp . |
(package private) long |
timestamp
The timestamp (in milliseconds) associated with
o . |
Constructor and Description |
---|
Timestamped(T o)
Initializes a new
Timestamped instance with a specific
Object and a default timestamp (value). |
Timestamped(T o,
long timestamp)
Initializes a new
Timestamped instance with a specific
Object and a specific timestamp (value). |
long timestamp
o
.public Timestamped(T o)
Timestamped
instance with a specific
Object
and a default timestamp (value).o
- the Object
to associate with a timestamppublic Timestamped(T o, long timestamp)
Timestamped
instance with a specific
Object
and a specific timestamp (value).o
- the Object
to associate with timestamp
timestamp
- the timestamp (in milliseconds) to associate with
o
Copyright © 2018. All rights reserved.