public class Mapping extends ChemObject implements Serializable, Cloneable, IMapping
Constructor and Description |
---|
Mapping(IChemObject objectOne,
IChemObject objectTwo)
Constructs an unconnected lone pair.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this
Mapping and the mapped IChemObject s. |
IChemObject |
getChemObject(int pos)
Retrieves the first or second of the related IChemObjects.
|
Iterable<IChemObject> |
relatedChemObjects()
Returns an Iterable to the two IChemObjects.
|
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
getBuilder
public Mapping(IChemObject objectOne, IChemObject objectTwo)
objectOne
- The first IChemObject of the mappingobjectTwo
- The second IChemObject of the mappingpublic Iterable<IChemObject> relatedChemObjects()
relatedChemObjects
in interface IMapping
public IChemObject getChemObject(int pos)
getChemObject
in interface IMapping
pos
- The position of the IChemObject.public Object clone() throws CloneNotSupportedException
Mapping
and the mapped IChemObject
s.clone
in interface IChemObject
clone
in class ChemObject
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2021. All rights reserved.