JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.chemistry
Class Atom.ExtendedTypeKey

java.lang.Object
  extended bygov.nasa.javaGenes.chemistry.Atom.ExtendedTypeKey
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Atom

protected static class Atom.ExtendedTypeKey
extends java.lang.Object
implements java.io.Serializable

Represents the extended type of this atom for use as a hashtable key. The extended type is the atomic symbol plus the number of single, double, and triple bonds.

This provides an efficiency advantage over the String returned by getExtendedTypeString() when used in a hashtable but requires a little bit of care. Don't modify these objects in any way. This class is not thread safe

See Also:
Serialized Form

Field Summary
protected  int atomicNumber
           
protected  int[] bondCounts
           
protected static java.util.Hashtable permanentKeys
           
protected static Atom.ExtendedTypeKey temporary
           
 
Constructor Summary
protected Atom.ExtendedTypeKey()
           
protected Atom.ExtendedTypeKey(Atom atom)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
static Atom.ExtendedTypeKey getOne(Atom atom)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bondCounts

protected int[] bondCounts

atomicNumber

protected int atomicNumber

temporary

protected static Atom.ExtendedTypeKey temporary

permanentKeys

protected static java.util.Hashtable permanentKeys
Constructor Detail

Atom.ExtendedTypeKey

protected Atom.ExtendedTypeKey()

Atom.ExtendedTypeKey

protected Atom.ExtendedTypeKey(Atom atom)
Method Detail

getOne

public static Atom.ExtendedTypeKey getOne(Atom atom)

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

JavaGenes, NASA Ames. Written largely by Al Globus