Logo Search packages:      
Sourcecode: cdk version File versions  Download package

boolean org.openscience.cdk.Element.compare ( Object  object) [inline, inherited]

Compares an Element with this Element.

objectObject of type AtomType
true if the atom types are equal

Reimplemented from org.openscience.cdk.ChemObject.

Reimplemented in org.openscience.cdk.Atom, org.openscience.cdk.AtomType, and org.openscience.cdk.Isotope.

Definition at line 194 of file Element.java.

References org.openscience.cdk.Element.atomicNumber, org.openscience.cdk.Element.Element(), and org.openscience.cdk.Element.symbol.

        if (!(object instanceof Element)) {
            return false;
        if (!super.compare(object)) {
            return false;
        Element elem = (Element)object;
        return atomicNumber == elem.atomicNumber &&

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index