Package jgromacs.db
Class AtomType
java.lang.Object
jgromacs.db.AtomType
- All Implemented Interfaces:
Cloneable
Objects of this class represent an atom type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns an identical AtomType objectboolean
Returns true if the two atom types are identicalgetCode()
Returns the code of atom typeReturns the full name of atom typeint
hashCode()
Returns hash codetoString()
Returns the String representation of atom type
-
Constructor Details
-
AtomType
public AtomType()Constructs a new AtomType object -
AtomType
public AtomType(int type) Constructs a new AtomType object of a given type- Parameters:
type
- atom type
-
AtomType
Constructs a new AtomType object of given code- Parameters:
code
- atom code
-
-
Method Details
-
getCode
Returns the code of atom type- Returns:
- atom code
-
getFullName
Returns the full name of atom type- Returns:
- atom name
-
toString
Returns the String representation of atom type -
clone
Returns an identical AtomType object -
equals
Returns true if the two atom types are identical -
hashCode
public int hashCode()Returns hash code
-