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 class
Builds instances of typeImmutableResidueTorsionAngles
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableResidueTorsionAngles
.copyOf
(ResidueTorsionAngles instance) Creates an immutable copy of aResidueTorsionAngles
value.boolean
This instance is equal to all instances ofImmutableResidueTorsionAngles
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:identifier
,values
.of
(PdbResidueIdentifier identifier, Iterable<? extends TorsionAngleValue> values) Construct a new immutableResidueTorsionAngles
instance.of
(PdbResidueIdentifier identifier, List<TorsionAngleValue> values) Construct a new immutableResidueTorsionAngles
instance.toString()
Prints the immutable valueResidueTorsionAngles
with attribute values.protected List<TorsionAngleValue>
values()
Copy the current immutable object by setting a value for theidentifier
attribute.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:
identifier
in classResidueTorsionAngles
- Returns:
- The residue identifier.
-
values
- Specified by:
values
in classResidueTorsionAngles
- Returns:
- The list of torsion angles' values.
-
withIdentifier
Copy the current immutable object by setting a value for theidentifier
attribute. 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
this
object
-
withValues
Copy the current immutable object with elements that replace the content ofvalues
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
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
this
object
-
equals
This instance is equal to all instances ofImmutableResidueTorsionAngles
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:identifier
,values
. -
toString
Prints the immutable valueResidueTorsionAngles
with attribute values. -
of
public static ImmutableResidueTorsionAngles of(PdbResidueIdentifier identifier, List<TorsionAngleValue> values) Construct a new immutableResidueTorsionAngles
instance.- Parameters:
identifier
- The value for theidentifier
attributevalues
- The value for thevalues
attribute- Returns:
- An immutable ResidueTorsionAngles instance
-
of
public static ImmutableResidueTorsionAngles of(PdbResidueIdentifier identifier, Iterable<? extends TorsionAngleValue> values) Construct a new immutableResidueTorsionAngles
instance.- Parameters:
identifier
- The value for theidentifier
attributevalues
- The value for thevalues
attribute- Returns:
- An immutable ResidueTorsionAngles instance
-
copyOf
Creates an immutable copy of aResidueTorsionAngles
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 ResidueTorsionAngles instance
-
builder
Creates a builder forImmutableResidueTorsionAngles
.ImmutableResidueTorsionAngles.builder() .identifier(pl.poznan.put.pdb.PdbResidueIdentifier) // required
identifier
.addValues|addAllValues(pl.poznan.put.torsion.TorsionAngleValue) //values
elements .build();- Returns:
- A new ImmutableResidueTorsionAngles builder
-