org.omg.dds.core.modifiable
Class ModifiableDuration
java.lang.Object
org.omg.dds.core.Duration
org.omg.dds.core.modifiable.ModifiableDuration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, DDSObject, ModifiableValue<Duration,ModifiableDuration>, Value<Duration,ModifiableDuration>
public abstract class ModifiableDuration
- extends Duration
- implements ModifiableValue<Duration,ModifiableDuration>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifiableDuration
public ModifiableDuration()
setDuration
public abstract ModifiableDuration setDuration(long duration,
java.util.concurrent.TimeUnit unit)
- Returns:
- this
add
public abstract ModifiableDuration add(Duration duration)
- Increase this duration by the given amount.
- Returns:
- this
add
public abstract ModifiableDuration add(long duration,
java.util.concurrent.TimeUnit unit)
- Increase this duration by the given amount.
- Returns:
- this
subtract
public abstract ModifiableDuration subtract(Duration duration)
- Decrease this duration by the given amount.
- Returns:
- this
subtract
public abstract ModifiableDuration subtract(long duration,
java.util.concurrent.TimeUnit unit)
- Decrease this duration by the given amount.
- Returns:
- this
clone
public abstract ModifiableDuration 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<Duration,ModifiableDuration>- Specified by:
clone in interface Value<Duration,ModifiableDuration>- Specified by:
clone in class Duration
- 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.