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 ofPdbRemark2Line.Use the builder to create immutable instances:
ImmutablePdbRemark2Line.builder(). Use the static factory method to create immutable instances:ImmutablePdbRemark2Line.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePdbRemark2Line.BuilderBuilds instances of typeImmutablePdbRemark2Line.
-
Field Summary
-
Fields inherited from class pl.poznan.put.pdb.PdbRemark2Line
PROLOGUE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePdbRemark2Line.Builderbuilder()Creates a builder forImmutablePdbRemark2Line.static ImmutablePdbRemark2LinecopyOf(PdbRemark2Line instance)Creates an immutable copy of aPdbRemark2Linevalue.booleanequals(Object another)This 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.doubleresolution()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 Detail
-
resolution
public double resolution()
- Specified by:
resolutionin classPdbRemark2Line- Returns:
- The value of the
resolutionattribute
-
withResolution
public final ImmutablePdbRemark2Line withResolution(double value)
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
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutablePdbRemark2Linethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resolution.
-
of
public static ImmutablePdbRemark2Line of(double resolution)
Construct a new immutablePdbRemark2Lineinstance.- Parameters:
resolution- The value for theresolutionattribute- Returns:
- An immutable PdbRemark2Line instance
-
copyOf
public static ImmutablePdbRemark2Line copyOf(PdbRemark2Line instance)
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
public static ImmutablePdbRemark2Line.Builder builder()
Creates a builder forImmutablePdbRemark2Line.ImmutablePdbRemark2Line.builder() .resolution(double) // requiredresolution.build();- Returns:
- A new ImmutablePdbRemark2Line builder
-
-