Class ImmutablePdbRemark465Line

    • Method Detail

      • modelNumber

        public int modelNumber()
        Specified by:
        modelNumber in class PdbRemark465Line
        Returns:
        The value of the modelNumber attribute
      • withModelNumber

        public final ImmutablePdbRemark465Line withModelNumber​(int value)
        Copy the current immutable object by setting a value for the modelNumber attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for modelNumber
        Returns:
        A modified copy of the this object
      • withResidueName

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

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

        public final ImmutablePdbRemark465Line withResidueNumber​(int value)
        Copy the current immutable object by setting a value for the residueNumber attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for residueNumber
        Returns:
        A modified copy of the this object
      • withInsertionCode

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

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutablePdbRemark465Line 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: modelNumber, residueName, chainIdentifier, residueNumber, insertionCode.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • of

        public static ImmutablePdbRemark465Line of​(int modelNumber,
                                                   String residueName,
                                                   String chainIdentifier,
                                                   int residueNumber,
                                                   String insertionCode)
        Construct a new immutable PdbRemark465Line instance.
        Parameters:
        modelNumber - The value for the modelNumber attribute
        residueName - The value for the residueName attribute
        chainIdentifier - The value for the chainIdentifier attribute
        residueNumber - The value for the residueNumber attribute
        insertionCode - The value for the insertionCode attribute
        Returns:
        An immutable PdbRemark465Line instance
      • copyOf

        public static ImmutablePdbRemark465Line copyOf​(PdbRemark465Line instance)
        Creates an immutable copy of a PdbRemark465Line value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable PdbRemark465Line instance