/** * @see java.lang.Object#clone() */ @Override public IElementAttributes clone() { try { ElementAttributes c = (ElementAttributes) super.clone(); c.setCreateTime(); return c; } catch (CloneNotSupportedException e) { throw new RuntimeException("Clone not supported. This should never happen.", e); } } }
if (ElementAttributes.class.isInstance(clone)) ElementAttributes.class.cast(clone).setCreateTime();
copy.setIsEternal(eternal); if (ElementAttributes.class.isInstance(copy)) { ElementAttributes.class.cast(copy).setCreateTime();