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.Builderbuilder()Creates a builder forImmutableBackbone.static ImmutableBackboneCreates an immutable copy of aBackbonevalue.booleanThis instance is equal to all instances ofImmutableBackbonethat have equal attribute values.inthashCode()Returns a constant hash code value.static ImmutableBackboneof()Returns the default immutable singleton value ofBackbonetoString()Prints the immutable valueBackbone.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.poznan.put.protein.Backbone
requiredAtomsMethods inherited from interface pl.poznan.put.pdb.analysis.ResidueComponent
additionalAtoms
-
Method Details
-
equals
This instance is equal to all instances ofImmutableBackbonethat 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 aBackbonevalue. 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
-