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 of
ResidueTorsionAngles.
Use the builder to create immutable instances:
ImmutableResidueTorsionAngles.builder().
Use the static factory method to create immutable instances:
ImmutableResidueTorsionAngles.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableResidueTorsionAngles. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableResidueTorsionAngles.copyOf(ResidueTorsionAngles instance) Creates an immutable copy of aResidueTorsionAnglesvalue.booleanThis instance is equal to all instances ofImmutableResidueTorsionAnglesthat have equal attribute values.inthashCode()Computes a hash code from attributes:identifier,values.of(PdbResidueIdentifier identifier, Iterable<? extends TorsionAngleValue> values) Construct a new immutableResidueTorsionAnglesinstance.of(PdbResidueIdentifier identifier, List<TorsionAngleValue> values) Construct a new immutableResidueTorsionAnglesinstance.toString()Prints the immutable valueResidueTorsionAngleswith attribute values.protected List<TorsionAngleValue>values()Copy the current immutable object by setting a value for theidentifierattribute.withValues(Iterable<? extends TorsionAngleValue> elements) Copy the current immutable object with elements that replace the content ofvalues.withValues(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 Details
-
identifier
- Specified by:
identifierin classResidueTorsionAngles- Returns:
- The residue identifier.
-
values
- Specified by:
valuesin classResidueTorsionAngles- Returns:
- The list of torsion angles' values.
-
withIdentifier
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
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
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
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
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
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
-