Class RgroupBridgeId

java.lang.Object
chemaxon.struc.RgroupBridgeId
All Implemented Interfaces:
Comparable<RgroupBridgeId>

@PublicApi public class RgroupBridgeId extends Object implements Comparable<RgroupBridgeId>
Identifies an R-group bridge position by storing a pair of R-group IDs. R-group bridges are optional definitions of two distinct R-groups that connect them with ring segments.
  • Constructor Details

    • RgroupBridgeId

      public RgroupBridgeId(int rgroupId1, int rgroupId2)
      Constructor.
      Parameters:
      rgroupId1 - the ID of the first bridged R-group
      rgroupId2 - the ID of the second bridged R-group
  • Method Details

    • getRgroupId1

      public int getRgroupId1()
      Returns the ID of the first bridged R-group.
    • getRgroupId2

      public int getRgroupId2()
      Returns the ID of the second bridged R-group.
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(RgroupBridgeId other)
      Specified by:
      compareTo in interface Comparable<RgroupBridgeId>
    • toString

      public String toString()
      Overrides:
      toString in class Object