19 package org.omg.dds.core;
21 import java.io.Serializable;
22 import java.util.concurrent.TimeUnit;
32 @Extensibility(Extensibility.Kind.FINAL_EXTENSIBILITY)
35 implements Comparable<Time>, Serializable,
DDSObject 41 private static final long serialVersionUID = -132361141453190372L;
68 throw new IllegalArgumentException(
69 "Invalid ServiceEnvironment (null) provided.");
84 throw new IllegalArgumentException(
85 "Invalid ServiceEnvironment (null) provided.");
121 public abstract long getTime(TimeUnit inThisUnit);
154 TimeUnit primaryUnit, TimeUnit remainderUnit);
162 public abstract boolean isValid();
abstract long getTime(TimeUnit inThisUnit)
Truncate this time to a whole-number quantity of the given time unit.
abstract long getRemainder(TimeUnit primaryUnit, TimeUnit remainderUnit)
If getting the magnitude of this time in the given primaryUnit would cause truncation with respect to...
static ModifiableTime newTime(long time, TimeUnit units, ServiceEnvironment env)
Construct a specific instant in time.
abstract boolean isValid()
ModifiableTime newTime(long time, TimeUnit units)
Construct a specific instant in time.
abstract ServiceProviderInterface getSPI()
This method is not intended for use by applications.
A supertype of all DDS classes and interfaces.
static Time invalidTime(ServiceEnvironment env)
abstract ModifiableTime modifiableCopy()
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
A moment in time expressed with nanosecond precision (though not necessarily nanosecond accuracy)...