Class ImmutableAtomBasedTorsionAngleType

    • Method Detail

      • residueRule

        public Quadruple<Integer> residueRule()
        Specified by:
        residueRule in interface AtomBasedTorsionAngleType
        Returns:
        The quadruple of relative indices to take atoms from. For example, a rule (0, 0, 0, 0) means that all atoms are from the same residue, while a rule (-1, 0, 0, 0) means that the first atom is taken from the preceding residue.
      • withMoleculeType

        public final ImmutableAtomBasedTorsionAngleType withMoleculeType​(MoleculeType value)
        Copy the current immutable object by setting a value for the moleculeType attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for moleculeType
        Returns:
        A modified copy of the this object
      • withShortDisplayName

        public final ImmutableAtomBasedTorsionAngleType withShortDisplayName​(String value)
        Copy the current immutable object by setting a value for the shortDisplayName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for shortDisplayName
        Returns:
        A modified copy of the this object
      • withExportName

        public final ImmutableAtomBasedTorsionAngleType withExportName​(String value)
        Copy the current immutable object by setting a value for the exportName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for exportName
        Returns:
        A modified copy of the this object
      • withAtoms

        public final ImmutableAtomBasedTorsionAngleType withAtoms​(Quadruple<AtomName> value)
        Copy the current immutable object by setting a value for the atoms attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for atoms
        Returns:
        A modified copy of the this object
      • withResidueRule

        public final ImmutableAtomBasedTorsionAngleType withResidueRule​(Quadruple<Integer> value)
        Copy the current immutable object by setting a value for the residueRule attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for residueRule
        Returns:
        A modified copy of the this object
      • withIsPseudoTorsion

        public final ImmutableAtomBasedTorsionAngleType withIsPseudoTorsion​(boolean value)
        Copy the current immutable object by setting a value for the isPseudoTorsion attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for isPseudoTorsion
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableAtomBasedTorsionAngleType that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: moleculeType, shortDisplayName, exportName, atoms, residueRule, isPseudoTorsion.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value AtomBasedTorsionAngleType with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static ImmutableAtomBasedTorsionAngleType of​(MoleculeType moleculeType,
                                                            String shortDisplayName,
                                                            String exportName,
                                                            Quadruple<AtomName> atoms,
                                                            Quadruple<Integer> residueRule)
        Construct a new immutable AtomBasedTorsionAngleType instance.
        Parameters:
        moleculeType - The value for the moleculeType attribute
        shortDisplayName - The value for the shortDisplayName attribute
        exportName - The value for the exportName attribute
        atoms - The value for the atoms attribute
        residueRule - The value for the residueRule attribute
        Returns:
        An immutable AtomBasedTorsionAngleType instance