/** {@inheritDoc} */ @Override public Map<Object, Object> getProperties() { logger.debug("Getting properties"); return super.getProperties(); }
/** * Clones this <code>IChemObject</code>. It clones the identifier, flags, * properties and pointer vectors. The ChemObjectListeners are not cloned, and * neither is the content of the pointer vectors. * *@return The cloned object */ @Override public Object clone() throws CloneNotSupportedException { ChemObject clone = (ChemObject) super.clone(); // clone the flags clone.flags = getFlagValue().shortValue(); // clone the properties - using the HashMap copy constructor // this doesn't deep clone the keys/values but this wasn't happening // already if (properties != null) clone.properties = new HashMap<Object, Object>(getProperties()); // delete all listeners clone.chemObjectListeners = null; return clone; }
/** * Clones this <code>IChemObject</code>. It clones the identifier, flags, * properties and pointer vectors. The ChemObjectListeners are not cloned, and * neither is the content of the pointer vectors. * *@return The cloned object */ @Override public Object clone() throws CloneNotSupportedException { ChemObject clone = (ChemObject) super.clone(); // clone the flags clone.flags = getFlagValue().shortValue(); // clone the properties - using the HashMap copy constructor // this doesn't deep clone the keys/values but this wasn't happening // already if (properties != null) clone.properties = new HashMap<Object, Object>(getProperties()); // delete all listeners clone.chemObjectListeners = null; return clone; }