Package jgromacs.db
Class AtomType
- java.lang.Object
-
- jgromacs.db.AtomType
-
- All Implemented Interfaces:
java.lang.Cloneable
public class AtomType extends java.lang.Object implements java.lang.Cloneable
Objects of this class represent an atom type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Returns an identical AtomType objectboolean
equals(java.lang.Object other)
Returns true if the two atom types are identicaljava.lang.String
getCode()
Returns the code of atom typejava.lang.String
getFullName()
Returns the full name of atom typeint
hashCode()
Returns hash codejava.lang.String
toString()
Returns the String representation of atom type
-
-
-
Constructor Detail
-
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
public AtomType(java.lang.String code)
Constructs a new AtomType object of given code- Parameters:
code
- atom code
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Returns the code of atom type- Returns:
- atom code
-
getFullName
public java.lang.String getFullName()
Returns the full name of atom type- Returns:
- atom name
-
toString
public java.lang.String toString()
Returns the String representation of atom type- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representation
-
clone
public java.lang.Object clone()
Returns an identical AtomType object- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of the atom type
-
equals
public boolean equals(java.lang.Object other)
Returns true if the two atom types are identical- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- the other atom type
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCode
in classjava.lang.Object
-
-