Package pl.poznan.put.torsion
Class ImmutableTorsionAngleValue
java.lang.Object
pl.poznan.put.torsion.TorsionAngleValue
pl.poznan.put.torsion.ImmutableTorsionAngleValue
- All Implemented Interfaces:
DisplayableExportable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableTorsionAngleValue
extends TorsionAngleValue
Immutable implementation of
TorsionAngleValue
.
Use the builder to create immutable instances:
ImmutableTorsionAngleValue.builder()
.
Use the static factory method to create immutable instances:
ImmutableTorsionAngleValue.of()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableTorsionAngleValue
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableTorsionAngleValue
.static ImmutableTorsionAngleValue
copyOf
(TorsionAngleValue instance) Creates an immutable copy of aTorsionAngleValue
value.boolean
This instance is equal to all instances ofImmutableTorsionAngleValue
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:angleType
,value
.static ImmutableTorsionAngleValue
of
(TorsionAngleType angleType, Angle value) Construct a new immutableTorsionAngleValue
instance.toString()
Prints the immutable valueTorsionAngleValue
with attribute values.value()
withAngleType
(TorsionAngleType value) Copy the current immutable object by setting a value for theangleType
attribute.Copy the current immutable object by setting a value for thevalue
attribute.Methods inherited from class pl.poznan.put.torsion.TorsionAngleValue
exportName, longDisplayName, shortDisplayName
-
Method Details
-
angleType
- Specified by:
angleType
in classTorsionAngleValue
- Returns:
- The type of this torsion angle.
-
value
- Specified by:
value
in classTorsionAngleValue
- Returns:
- The value of this torsion angle.
-
withAngleType
Copy the current immutable object by setting a value for theangleType
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for angleType- Returns:
- A modified copy of the
this
object
-
withValue
Copy the current immutable object by setting a value for thevalue
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for value- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableTorsionAngleValue
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:angleType
,value
. -
toString
Prints the immutable valueTorsionAngleValue
with attribute values. -
of
Construct a new immutableTorsionAngleValue
instance.- Parameters:
angleType
- The value for theangleType
attributevalue
- The value for thevalue
attribute- Returns:
- An immutable TorsionAngleValue instance
-
copyOf
Creates an immutable copy of aTorsionAngleValue
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 TorsionAngleValue instance
-
builder
Creates a builder forImmutableTorsionAngleValue
.ImmutableTorsionAngleValue.builder() .angleType(pl.poznan.put.torsion.TorsionAngleType) // required
angleType
.value(pl.poznan.put.circular.Angle) // requiredvalue
.build();- Returns:
- A new ImmutableTorsionAngleValue builder
-