Package pl.poznan.put.pdb
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePdbRemark2Line
. -
Field Summary
Fields inherited from class pl.poznan.put.pdb.PdbRemark2Line
PROLOGUE
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePdbRemark2Line
.static ImmutablePdbRemark2Line
copyOf
(PdbRemark2Line instance) Creates an immutable copy of aPdbRemark2Line
value.boolean
This instance is equal to all instances ofImmutablePdbRemark2Line
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:resolution
.static ImmutablePdbRemark2Line
of
(double resolution) Construct a new immutablePdbRemark2Line
instance.double
final ImmutablePdbRemark2Line
withResolution
(double value) Copy the current immutable object by setting a value for theresolution
attribute.Methods inherited from class pl.poznan.put.pdb.PdbRemark2Line
parse, toPdb, toString
-
Method Details
-
resolution
public double resolution()- Specified by:
resolution
in classPdbRemark2Line
- Returns:
- The value of the
resolution
attribute
-
withResolution
Copy the current immutable object by setting a value for theresolution
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for resolution- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePdbRemark2Line
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:resolution
. -
of
Construct a new immutablePdbRemark2Line
instance.- Parameters:
resolution
- The value for theresolution
attribute- Returns:
- An immutable PdbRemark2Line instance
-
copyOf
Creates an immutable copy of aPdbRemark2Line
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
Creates a builder forImmutablePdbRemark2Line
.ImmutablePdbRemark2Line.builder() .resolution(double) // required
resolution
.build();- Returns:
- A new ImmutablePdbRemark2Line builder
-