Class ImmutablePdbAtomLine.Builder

  • Enclosing class:
    ImmutablePdbAtomLine

    @NotThreadSafe
    public static final class ImmutablePdbAtomLine.Builder
    extends Object
    Builds instances of type ImmutablePdbAtomLine. 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 ImmutablePdbAtomLine.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 ImmutablePdbAtomLine.Builder from​(PdbAtomLine instance)
        Fill a builder with attribute values from the provided pl.poznan.put.pdb.PdbAtomLine instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • serialNumber

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

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

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

        public final ImmutablePdbAtomLine.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 ImmutablePdbAtomLine.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 ImmutablePdbAtomLine.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 ImmutablePdbAtomLine.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
      • x

        public final ImmutablePdbAtomLine.Builder x​(double x)
        Initializes the value for the x attribute.
        Parameters:
        x - The value for x
        Returns:
        this builder for use in a chained invocation
      • y

        public final ImmutablePdbAtomLine.Builder y​(double y)
        Initializes the value for the y attribute.
        Parameters:
        y - The value for y
        Returns:
        this builder for use in a chained invocation
      • z

        public final ImmutablePdbAtomLine.Builder z​(double z)
        Initializes the value for the z attribute.
        Parameters:
        z - The value for z
        Returns:
        this builder for use in a chained invocation
      • occupancy

        public final ImmutablePdbAtomLine.Builder occupancy​(double occupancy)
        Initializes the value for the occupancy attribute.
        Parameters:
        occupancy - The value for occupancy
        Returns:
        this builder for use in a chained invocation
      • temperatureFactor

        public final ImmutablePdbAtomLine.Builder temperatureFactor​(double temperatureFactor)
        Initializes the value for the temperatureFactor attribute.
        Parameters:
        temperatureFactor - The value for temperatureFactor
        Returns:
        this builder for use in a chained invocation
      • elementSymbol

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

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