Class ImmutablePdbRemark2Line

java.lang.Object
pl.poznan.put.pdb.PdbRemark2Line
pl.poznan.put.pdb.ImmutablePdbRemark2Line
All Implemented Interfaces:
Serializable

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

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

See Also:
  • Method Details

    • resolution

      public double resolution()
      Specified by:
      resolution in class PdbRemark2Line
      Returns:
      The value of the resolution attribute
    • withResolution

      public final ImmutablePdbRemark2Line withResolution(double value)
      Copy the current immutable object by setting a value for the resolution attribute. A value strict bits equality used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for resolution
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutablePdbRemark2Line 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: resolution.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • of

      public static ImmutablePdbRemark2Line of(double resolution)
      Construct a new immutable PdbRemark2Line instance.
      Parameters:
      resolution - The value for the resolution attribute
      Returns:
      An immutable PdbRemark2Line instance
    • copyOf

      public static ImmutablePdbRemark2Line copyOf(PdbRemark2Line instance)
      Creates an immutable copy of a PdbRemark2Line 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 PdbRemark2Line instance
    • builder

      public static ImmutablePdbRemark2Line.Builder builder()
      Creates a builder for ImmutablePdbRemark2Line.
       ImmutablePdbRemark2Line.builder()
          .resolution(double) // required resolution
          .build();
       
      Returns:
      A new ImmutablePdbRemark2Line builder