Package jgromacs.db

Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomType()
      Constructs a new AtomType object
      AtomType​(int type)
      Constructs a new AtomType object of a given type
      AtomType​(java.lang.String code)
      Constructs a new AtomType object of given code
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Returns an identical AtomType object
      boolean equals​(java.lang.Object other)
      Returns true if the two atom types are identical
      java.lang.String getCode()
      Returns the code of atom type
      java.lang.String getFullName()
      Returns the full name of atom type
      int hashCode()
      Returns hash code
      java.lang.String toString()
      Returns the String representation of atom type
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object
        Returns:
        String representation
      • clone

        public java.lang.Object clone()
        Returns an identical AtomType object
        Overrides:
        clone in class java.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 class java.lang.Object
        Parameters:
        other - the other atom type
      • hashCode

        public int hashCode()
        Returns hash code
        Overrides:
        hashCode in class java.lang.Object