Class GeneratedAtom

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<Atom>

    public class GeneratedAtom
    extends Atom
    Internal Atom class, maps required method calls to override the Atom ones.
    Author:
    Christopher Mindus
    • Constructor Detail

      • GeneratedAtom

        protected GeneratedAtom​(java.lang.String name)
        Creates a temporary atom.
        Parameters:
        name - The temporary name.
    • Method Detail

      • getAtomName

        public java.lang.String getAtomName()
        Gets the atom name.
        Overrides:
        getAtomName in class Atom
        Returns:
        the name of the atom.
      • equals

        public boolean equals​(java.lang.Object atom)
        Checks for equality, remap to the "hashCode()" of the atom name as do the real Editor atom manager.
        Overrides:
        equals in class Atom
        Parameters:
        atom - the atom to compare...
        Returns:
        true if the atom is equal to this object instance by reference ("==").
      • hashCode

        public int hashCode()
        Gets the hash code of the Atom, i.e. the hash code of the Atom Name.
        Overrides:
        hashCode in class Atom
        Returns:
        the hash code of the Atom Name.
      • toString

        public java.lang.String toString()
        Converts the atom to a string in the format of atom[name,index,generated].
        Overrides:
        toString in class Atom