Class IndexSelection

java.lang.Object
org.rcsb.strucmotif.domain.structure.IndexSelection
All Implemented Interfaces:
Selection

public class IndexSelection extends Object implements Selection
Selects a residue by its index in the source structure file.
  • Constructor Details

    • IndexSelection

      public IndexSelection(String structOperId, int index)
      Constructs an IndexSelection.
      Parameters:
      structOperId - the operator
      index - the index
  • Method Details

    • getStructOperId

      public String getStructOperId()
      Description copied from interface: Selection
      The operator applied to the original coordinates.
      Specified by:
      getStructOperId in interface Selection
      Returns:
      an expression based on struct_oper_id
    • getIndex

      public int getIndex()
      The index of the referenced residue.
      Returns:
      an int
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object