Class GeneratedAtom

java.lang.Object
com.iizix.prop.Atom
com.iizix.editor.GeneratedAtom
All Implemented Interfaces:
Cloneable, Comparable<Atom>

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

    • GeneratedAtom

      protected GeneratedAtom(String name)
      Creates a temporary atom.
      Parameters:
      name - The temporary name.
  • Method Details

    • getAtomName

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

      public boolean equals(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 String toString()
      Converts the atom to a string in the format of atom[name,index,generated].
      Overrides:
      toString in class Atom