Class ImmutablePdbModresLine.Builder

  • Enclosing class:
    ImmutablePdbModresLine

    @NotThreadSafe
    public static final class ImmutablePdbModresLine.Builder
    extends Object
    Builds instances of type ImmutablePdbModresLine. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutablePdbModresLine.Builder from​(ChainNumberICode instance)
        Fill a builder with attribute values from the provided pl.poznan.put.pdb.ChainNumberICode instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutablePdbModresLine.Builder from​(PdbModresLine instance)
        Fill a builder with attribute values from the provided pl.poznan.put.pdb.PdbModresLine instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • idCode

        public final ImmutablePdbModresLine.Builder idCode​(String idCode)
        Initializes the value for the idCode attribute.
        Parameters:
        idCode - The value for idCode
        Returns:
        this builder for use in a chained invocation
      • residueName

        public final ImmutablePdbModresLine.Builder residueName​(String residueName)
        Initializes the value for the residueName attribute.
        Parameters:
        residueName - The value for residueName
        Returns:
        this builder for use in a chained invocation
      • chainIdentifier

        public final ImmutablePdbModresLine.Builder chainIdentifier​(String chainIdentifier)
        Initializes the value for the chainIdentifier attribute.
        Parameters:
        chainIdentifier - The value for chainIdentifier
        Returns:
        this builder for use in a chained invocation
      • residueNumber

        public final ImmutablePdbModresLine.Builder residueNumber​(int residueNumber)
        Initializes the value for the residueNumber attribute.
        Parameters:
        residueNumber - The value for residueNumber
        Returns:
        this builder for use in a chained invocation
      • insertionCode

        public final ImmutablePdbModresLine.Builder insertionCode​(String insertionCode)
        Initializes the value for the insertionCode attribute.
        Parameters:
        insertionCode - The value for insertionCode
        Returns:
        this builder for use in a chained invocation
      • standardResidueName

        public final ImmutablePdbModresLine.Builder standardResidueName​(String standardResidueName)
        Initializes the value for the standardResidueName attribute.
        Parameters:
        standardResidueName - The value for standardResidueName
        Returns:
        this builder for use in a chained invocation
      • comment

        public final ImmutablePdbModresLine.Builder comment​(String comment)
        Initializes the value for the comment attribute.
        Parameters:
        comment - The value for comment
        Returns:
        this builder for use in a chained invocation