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 classBuilds instances of typeImmutableTorsionAngleValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTorsionAngleValue.static ImmutableTorsionAngleValuecopyOf(TorsionAngleValue instance) Creates an immutable copy of aTorsionAngleValuevalue.booleanThis instance is equal to all instances ofImmutableTorsionAngleValuethat have equal attribute values.inthashCode()Computes a hash code from attributes:angleType,value.static ImmutableTorsionAngleValueof(TorsionAngleType angleType, Angle value) Construct a new immutableTorsionAngleValueinstance.toString()Prints the immutable valueTorsionAngleValuewith attribute values.value()withAngleType(TorsionAngleType value) Copy the current immutable object by setting a value for theangleTypeattribute.Copy the current immutable object by setting a value for thevalueattribute.Methods inherited from class pl.poznan.put.torsion.TorsionAngleValue
exportName, longDisplayName, shortDisplayName
-
Method Details
-
angleType
- Specified by:
angleTypein classTorsionAngleValue- Returns:
- The type of this torsion angle.
-
value
- Specified by:
valuein classTorsionAngleValue- Returns:
- The value of this torsion angle.
-
withAngleType
Copy the current immutable object by setting a value for theangleTypeattribute. 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
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableTorsionAngleValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:angleType,value. -
toString
Prints the immutable valueTorsionAngleValuewith attribute values. -
of
Construct a new immutableTorsionAngleValueinstance.- Parameters:
angleType- The value for theangleTypeattributevalue- The value for thevalueattribute- Returns:
- An immutable TorsionAngleValue instance
-
copyOf
Creates an immutable copy of aTorsionAngleValuevalue. 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) // requiredangleType.value(pl.poznan.put.circular.Angle) // requiredvalue.build();- Returns:
- A new ImmutableTorsionAngleValue builder
-