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.CloneableObjects of this class represent an atom type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns an identical AtomType objectbooleanequals(java.lang.Object other)Returns true if the two atom types are identicaljava.lang.StringgetCode()Returns the code of atom typejava.lang.StringgetFullName()Returns the full name of atom typeinthashCode()Returns hash codejava.lang.StringtoString()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:
toStringin classjava.lang.Object- Returns:
- String representation
-
clone
public java.lang.Object clone()
Returns an identical AtomType object- Overrides:
clonein 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:
equalsin classjava.lang.Object- Parameters:
other- the other atom type
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCodein classjava.lang.Object
-
-