Package pl.poznan.put.pdb.analysis
Class ImmutableResidueTorsionAngles
- java.lang.Object
-
- pl.poznan.put.pdb.analysis.ResidueTorsionAngles
-
- pl.poznan.put.pdb.analysis.ImmutableResidueTorsionAngles
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableResidueTorsionAngles extends ResidueTorsionAngles
Immutable implementation ofResidueTorsionAngles.Use the builder to create immutable instances:
ImmutableResidueTorsionAngles.builder(). Use the static factory method to create immutable instances:ImmutableResidueTorsionAngles.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableResidueTorsionAngles.BuilderBuilds instances of typeImmutableResidueTorsionAngles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableResidueTorsionAngles.Builderbuilder()Creates a builder forImmutableResidueTorsionAngles.static ImmutableResidueTorsionAnglescopyOf(ResidueTorsionAngles instance)Creates an immutable copy of aResidueTorsionAnglesvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableResidueTorsionAnglesthat have equal attribute values.inthashCode()Computes a hash code from attributes:identifier,values.PdbResidueIdentifieridentifier()static ImmutableResidueTorsionAnglesof(PdbResidueIdentifier identifier, Iterable<? extends TorsionAngleValue> values)Construct a new immutableResidueTorsionAnglesinstance.static ImmutableResidueTorsionAnglesof(PdbResidueIdentifier identifier, List<TorsionAngleValue> values)Construct a new immutableResidueTorsionAnglesinstance.StringtoString()Prints the immutable valueResidueTorsionAngleswith attribute values.protected List<TorsionAngleValue>values()ImmutableResidueTorsionAngleswithIdentifier(PdbResidueIdentifier value)Copy the current immutable object by setting a value for theidentifierattribute.ImmutableResidueTorsionAngleswithValues(Iterable<? extends TorsionAngleValue> elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableResidueTorsionAngleswithValues(TorsionAngleValue... elements)Copy the current immutable object with elements that replace the content ofvalues.-
Methods inherited from class pl.poznan.put.pdb.analysis.ResidueTorsionAngles
calculate, value, value
-
-
-
-
Method Detail
-
identifier
public PdbResidueIdentifier identifier()
- Specified by:
identifierin classResidueTorsionAngles- Returns:
- The residue identifier.
-
values
protected List<TorsionAngleValue> values()
- Specified by:
valuesin classResidueTorsionAngles- Returns:
- The list of torsion angles' values.
-
withIdentifier
public final ImmutableResidueTorsionAngles withIdentifier(PdbResidueIdentifier value)
Copy the current immutable object by setting a value for theidentifierattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for identifier- Returns:
- A modified copy of the
thisobject
-
withValues
public final ImmutableResidueTorsionAngles withValues(TorsionAngleValue... elements)
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final ImmutableResidueTorsionAngles withValues(Iterable<? extends TorsionAngleValue> elements)
Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableResidueTorsionAnglesthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:identifier,values.
-
toString
public String toString()
Prints the immutable valueResidueTorsionAngleswith attribute values.
-
of
public static ImmutableResidueTorsionAngles of(PdbResidueIdentifier identifier, List<TorsionAngleValue> values)
Construct a new immutableResidueTorsionAnglesinstance.- Parameters:
identifier- The value for theidentifierattributevalues- The value for thevaluesattribute- Returns:
- An immutable ResidueTorsionAngles instance
-
of
public static ImmutableResidueTorsionAngles of(PdbResidueIdentifier identifier, Iterable<? extends TorsionAngleValue> values)
Construct a new immutableResidueTorsionAnglesinstance.- Parameters:
identifier- The value for theidentifierattributevalues- The value for thevaluesattribute- Returns:
- An immutable ResidueTorsionAngles instance
-
copyOf
public static ImmutableResidueTorsionAngles copyOf(ResidueTorsionAngles instance)
Creates an immutable copy of aResidueTorsionAnglesvalue. 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 ResidueTorsionAngles instance
-
builder
public static ImmutableResidueTorsionAngles.Builder builder()
Creates a builder forImmutableResidueTorsionAngles.ImmutableResidueTorsionAngles.builder() .identifier(pl.poznan.put.pdb.PdbResidueIdentifier) // requiredidentifier.addValues|addAllValues(pl.poznan.put.torsion.TorsionAngleValue) //valueselements .build();- Returns:
- A new ImmutableResidueTorsionAngles builder
-
-