public static Object create() { MutableTypeExampleModified self; self = new MutableTypeExampleModified(); self.clear(); return self; }
/** * This is the implementation of the <code>Copyable</code> interface. This method will perform a * deep copy of <code>src</code> This method could be placed into <code> * MutableTypeExampleModifiedTypeSupport</code> rather than here by using the <code>-noCopyable * </code> option to rtiddsgen. * * @param src The Object which contains the data to be copied. * @return Returns <code>this</code>. * @exception NullPointerException If <code>src</code> is null. * @exception ClassCastException If <code>src</code> is not the same type as <code>this</code>. * @see com.rti.dds.infrastructure.Copyable#copy_from(java.lang.Object) */ public Object copy_from(Object src) { MutableTypeExampleModified typedSrc = (MutableTypeExampleModified) src; MutableTypeExampleModified typedDst = this; typedDst.c = typedSrc.c; typedDst.b = typedSrc.b; typedDst.d = typedSrc.d; return this; }