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 ofBackbone.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 Modifier and Type Class Description static classImmutableBackbone.BuilderBuilds instances of typeImmutableBackbone.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableBackbone.Builderbuilder()Creates a builder forImmutableBackbone.static ImmutableBackbonecopyOf(Backbone instance)Creates an immutable copy of aBackbonevalue.booleanequals(Object another)This 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 ofBackboneStringtoString()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 Detail
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableBackbonethat have equal attribute values.
-
hashCode
public int hashCode()
Returns a constant hash code value.
-
toString
public String toString()
Prints the immutable valueBackbone.
-
of
public static ImmutableBackbone of()
Returns the default immutable singleton value ofBackbone- Returns:
- An immutable instance of Backbone
-
copyOf
public static ImmutableBackbone copyOf(Backbone instance)
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
public static ImmutableBackbone.Builder builder()
Creates a builder forImmutableBackbone.ImmutableBackbone.builder() .build();- Returns:
- A new ImmutableBackbone builder
-
-