RTI Connext Java API
Version 7.0.0
|
<<extension>> <<interface>> Interface for all the user-defined data type classes that support copy. More...
Public Member Functions | |
Object | copy_from (Object src) |
Copy value of a data type from source. More... | |
<<extension>> <<interface>> Interface for all the user-defined data type classes that support copy.
A class implements the com.rti.dds.infrastructure.Copyable interface to indicate that it allows its entire state to be replaced with the state of another object. This state copy is a deep copy, such that subsequent changes to any part of one object will not be observed in the other.
Therefore, in general, object references in this object cannot simply be reassigned to those in the source object. (Strings are an exception to this rule, because they are immutable.)
Object copy_from | ( | Object | src | ) |
Copy value of a data type from source.
Copy data into this object from another. This copy is intended to be a deep copy, so that all data members (recursively) are copied (not just resetting Object references).
This operation returns the object that is copied if copy is successful.
src | <<in>> The Object which contains the data to be copied. |
NullPointerException | If src is null. |
ClassCastException | If src is not the same type as this. |
Implemented in SampleInfo, AbstractPrimitiveSequence, Time_t, DynamicData, InstanceHandle_t, Bytes, KeyedBytes, TopicQuerySelection, WriteParams_t, KeyedString, StringSeq, GUID_t, TopicQueryData, Foo, KeyedBytesSeq, KeyedStringSeq, BytesSeq, Enum, BuiltinTopicKey_t, FooSeq, ReadConditionParams, and QueryConditionParams.