public abstract class Time extends Object
Constructor and Description |
---|
Time() |
Modifier and Type | Method and Description |
---|---|
static Time |
create(java.time.Instant timestamp)
New time, with no user tag and valid data.
|
static Time |
create(java.time.Instant timestamp,
Integer userTag,
boolean valid)
Creates a new time.
|
boolean |
equals(Object obj) |
abstract java.time.Instant |
getTimestamp()
The timestamp of the value, typically indicating when it was
generated.
|
abstract Integer |
getUserTag()
Returns a user defined tag, that can be used to store extra
time information, such as beam shot.
|
int |
hashCode() |
abstract boolean |
isValid()
Returns a data source specific flag to indicate whether the time
information should be trusted.
|
static Time |
now()
New time with the current timestamp, no user tag and valid data.
|
String |
toString() |
public abstract java.time.Instant getTimestamp()
public abstract Integer getUserTag()
public abstract boolean isValid()
public static Time create(java.time.Instant timestamp, Integer userTag, boolean valid)
timestamp
- the timestampuserTag
- the user tagvalid
- whether the time is validpublic static Time create(java.time.Instant timestamp)
timestamp
- the timestamppublic static Time now()
Copyright © 2015. All rights reserved.