java.lang.Object
com.chemaxon.calculations.stereoanal.stereocenters.AtomSelection

@Beta @PublicAPI public class AtomSelection extends Object
Selection which contains atom indexes.

Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Since:
Marvin 6.2
  • Constructor Details

    • AtomSelection

      public AtomSelection(List<Integer> primaryIndexes, List<Integer> secondaryIndexes)
      Constructs an AtomSelection from lists.
      Parameters:
      primaryIndexes - primary indexes
      secondaryIndexes - secondary indexes
    • AtomSelection

      @Deprecated public AtomSelection(int[] primaryIndexes, int[] secondaryIndexes)
      Deprecated.
      Constructs an AtomSelection from arrays.
      Parameters:
      primaryIndexes - primary indexes
      secondaryIndexes - secondary indexes
    • AtomSelection

      @Deprecated public AtomSelection(int primaryIndex, int[] secondaryIndexes)
      Deprecated.
      Constructs an AtomSelection.
      Parameters:
      primaryIndex - primary index
      secondaryIndexes - secondary indexes
  • Method Details

    • getPrimaryIndexes

      public List<Integer> getPrimaryIndexes()
      Gets the primary indexes.
      Returns:
      list of primary indexes
    • getSecondaryIndexes

      public List<Integer> getSecondaryIndexes()
      Gets the secondary indexes.
      Returns:
      list of secondary indexes
    • primaryAtomIndexes

      @Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public int[] primaryAtomIndexes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the primary indexes.
      Returns:
      a copy of primary indexes array
    • secondaryAtomIndexes

      @Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public int[] secondaryAtomIndexes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the secondary indexes.
      Returns:
      a copy of secondary indexes array
    • toString

      public String toString()
      Creates a string representation.
      Overrides:
      toString in class Object
      Returns:
      string