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 classBuilds 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 ImmutablePdbRemark2LinecopyOf(PdbRemark2Line instance) Creates an immutable copy of aPdbRemark2Linevalue.booleanThis instance is equal to all instances ofImmutablePdbRemark2Linethat have equal attribute values.inthashCode()Computes a hash code from attributes:resolution.static ImmutablePdbRemark2Lineof(double resolution) Construct a new immutablePdbRemark2Lineinstance.doublefinal ImmutablePdbRemark2LinewithResolution(double value) Copy the current immutable object by setting a value for theresolutionattribute.Methods inherited from class pl.poznan.put.pdb.PdbRemark2Line
parse, toPdb, toString
-
Method Details
-
resolution
public double resolution()- Specified by:
resolutionin classPdbRemark2Line- Returns:
- The value of the
resolutionattribute
-
withResolution
Copy the current immutable object by setting a value for theresolutionattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutablePdbRemark2Linethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:resolution. -
of
Construct a new immutablePdbRemark2Lineinstance.- Parameters:
resolution- The value for theresolutionattribute- Returns:
- An immutable PdbRemark2Line instance
-
copyOf
Creates an immutable copy of aPdbRemark2Linevalue. 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) // requiredresolution.build();- Returns:
- A new ImmutablePdbRemark2Line builder
-