Class ImmutablePdbRemark465Line

java.lang.Object
pl.poznan.put.pdb.PdbRemark465Line
pl.poznan.put.pdb.ImmutablePdbRemark465Line
All Implemented Interfaces:
Serializable, Comparable<ChainNumberICode>, ChainNumberICode

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutablePdbRemark465Line extends PdbRemark465Line
Immutable implementation of PdbRemark465Line.

Use the builder to create immutable instances: ImmutablePdbRemark465Line.builder(). Use the static factory method to create immutable instances: ImmutablePdbRemark465Line.of().

See Also:
  • Method Details

    • modelNumber

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

      public String residueName()
      Specified by:
      residueName in class PdbRemark465Line
      Returns:
      The value of the residueName attribute
    • chainIdentifier

      public String chainIdentifier()
      Specified by:
      chainIdentifier in interface ChainNumberICode
      Specified by:
      chainIdentifier in class PdbRemark465Line
      Returns:
      The value of the chainIdentifier attribute
    • residueNumber

      public int residueNumber()
      Specified by:
      residueNumber in interface ChainNumberICode
      Specified by:
      residueNumber in class PdbRemark465Line
      Returns:
      The value of the residueNumber attribute
    • insertionCode

      public Optional<String> insertionCode()
      Specified by:
      insertionCode in interface ChainNumberICode
      Specified by:
      insertionCode in class PdbRemark465Line
      Returns:
      The value of the insertionCode 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 present value for the optional insertionCode attribute.
      Parameters:
      value - The value for insertionCode
      Returns:
      A modified copy of this object
    • withInsertionCode

      public final ImmutablePdbRemark465Line withInsertionCode(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the insertionCode attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for insertionCode
      Returns:
      A modified copy of 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, Optional<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
    • builder

      public static ImmutablePdbRemark465Line.Builder builder()
      Creates a builder for ImmutablePdbRemark465Line.
       ImmutablePdbRemark465Line.builder()
          .modelNumber(int) // required modelNumber
          .residueName(String) // required residueName
          .chainIdentifier(String) // required chainIdentifier
          .residueNumber(int) // required residueNumber
          .insertionCode(String) // optional insertionCode
          .build();
       
      Returns:
      A new ImmutablePdbRemark465Line builder