Package pl.poznan.put.protein
Class ImmutableBackbone
java.lang.Object
pl.poznan.put.protein.ImmutableBackbone
- All Implemented Interfaces:
ResidueComponent
,Backbone
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableBackbone
extends Object
implements Backbone
Immutable implementation of
Backbone
.
Use the builder to create immutable instances:
ImmutableBackbone.builder()
.
Use the static factory method to get the default singleton instance:
ImmutableBackbone.of()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableBackbone.Builder
builder()
Creates a builder forImmutableBackbone
.static ImmutableBackbone
Creates an immutable copy of aBackbone
value.boolean
This instance is equal to all instances ofImmutableBackbone
that have equal attribute values.int
hashCode()
Returns a constant hash code value.static ImmutableBackbone
of()
Returns the default immutable singleton value ofBackbone
toString()
Prints the immutable valueBackbone
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface pl.poznan.put.protein.Backbone
requiredAtoms
Methods inherited from interface pl.poznan.put.pdb.analysis.ResidueComponent
additionalAtoms
-
Method Details
-
equals
This instance is equal to all instances ofImmutableBackbone
that have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueBackbone
. -
of
Returns the default immutable singleton value ofBackbone
- Returns:
- An immutable instance of Backbone
-
copyOf
Creates an immutable copy of aBackbone
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 Backbone instance
-
builder
Creates a builder forImmutableBackbone
.ImmutableBackbone.builder() .build();
- Returns:
- A new ImmutableBackbone builder
-