org.omg.dds.core.modifiable
Class ModifiableTime
java.lang.Object
org.omg.dds.core.Time
org.omg.dds.core.modifiable.ModifiableTime
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, DDSObject, ModifiableValue<Time,ModifiableTime>, Value<Time,ModifiableTime>
public abstract class ModifiableTime
- extends Time
- implements ModifiableValue<Time,ModifiableTime>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifiableTime
public ModifiableTime()
setTime
public abstract ModifiableTime setTime(long time,
java.util.concurrent.TimeUnit unit)
- Returns:
- this
add
public abstract ModifiableTime add(Duration duration)
- Increment this time by the given amount.
- Returns:
- this
add
public abstract ModifiableTime add(long duration,
java.util.concurrent.TimeUnit unit)
- Increment this time by the given amount.
- Returns:
- this
subtract
public abstract ModifiableTime subtract(Duration duration)
- Decrement this time by the given amount.
- Returns:
- this
subtract
public abstract ModifiableTime subtract(long duration,
java.util.concurrent.TimeUnit unit)
- Decrement this time by the given amount.
- Returns:
- this
clone
public abstract ModifiableTime clone()
- Description copied from interface:
Value
- Extends the concept of "cloneable" defined in
java.lang by
providing an explicit public Value.clone() method.
- Specified by:
clone in interface ModifiableValue<Time,ModifiableTime>- Specified by:
clone in interface Value<Time,ModifiableTime>- Specified by:
clone in class Time
- Returns:
- a new object that with state identical to that of this object.
Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.