Class AtomLabels

java.lang.Object
chemaxon.checkers.util.AtomLabels

@PublicApi public class AtomLabels extends Object
The atom labels storage class. Parsing and reporting the atom labels is possible
Since:
16.9.26
  • Constructor Details

    • AtomLabels

      public AtomLabels()
      Initializes the atom labels
  • Method Details

    • parse

      public static AtomLabels parse(String representation)
      Parses the list of atom labels from a string.
      Parameters:
      representation - the string representation of the atom labels, a list of atom labels delimited by comma character
      Returns:
      the atom labels object if valid, null otherwise
    • add

      public void add(String atomLabel)
      Adds an atom label to the atom labels
      Parameters:
      atomLabel - the atom label to be added
    • getList

      public List<String> getList()
      Gets the list of atom labels
      Returns:
      the list of atom labels
    • contains

      public boolean contains(String atomLabel)
      Gets whether the atom labels contain the specified atom label
      Parameters:
      atomLabel - the target atom label
      Returns:
      true if the atom labels contain the specified atom label
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object