Class ImmutableAverageTorsionAngleType
- java.lang.Object
-
- pl.poznan.put.torsion.AverageTorsionAngleType
-
- pl.poznan.put.torsion.ImmutableAverageTorsionAngleType
-
- All Implemented Interfaces:
DisplayableExportable,MasterTorsionAngleType,TorsionAngleType
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableAverageTorsionAngleType extends AverageTorsionAngleType
Immutable implementation ofAverageTorsionAngleType.Use the builder to create immutable instances:
ImmutableAverageTorsionAngleType.builder(). Use the static factory method to create immutable instances:ImmutableAverageTorsionAngleType.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableAverageTorsionAngleType.BuilderBuilds instances of typeImmutableAverageTorsionAngleType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableAverageTorsionAngleType.Builderbuilder()Creates a builder forImmutableAverageTorsionAngleType.List<MasterTorsionAngleType>consideredAngles()protected Set<TorsionAngleType>consideredBasicAngleTypes()static ImmutableAverageTorsionAngleTypecopyOf(AverageTorsionAngleType instance)Creates an immutable copy of aAverageTorsionAngleTypevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableAverageTorsionAngleTypethat have equal attribute values.StringexportName()inthashCode()Computes a hash code from attributes:moleculeType,consideredAngles.MoleculeTypemoleculeType()static ImmutableAverageTorsionAngleTypeof(MoleculeType moleculeType, Iterable<? extends MasterTorsionAngleType> consideredAngles)Construct a new immutableAverageTorsionAngleTypeinstance.static ImmutableAverageTorsionAngleTypeof(MoleculeType moleculeType, List<MasterTorsionAngleType> consideredAngles)Construct a new immutableAverageTorsionAngleTypeinstance.StringshortDisplayName()StringtoString()Prints the immutable valueAverageTorsionAngleTypewith attribute values.ImmutableAverageTorsionAngleTypewithConsideredAngles(Iterable<? extends MasterTorsionAngleType> elements)Copy the current immutable object with elements that replace the content ofconsideredAngles.ImmutableAverageTorsionAngleTypewithConsideredAngles(MasterTorsionAngleType... elements)Copy the current immutable object with elements that replace the content ofconsideredAngles.ImmutableAverageTorsionAngleTypewithMoleculeType(MoleculeType value)Copy the current immutable object by setting a value for themoleculeTypeattribute.-
Methods inherited from class pl.poznan.put.torsion.AverageTorsionAngleType
angleTypes, calculate, calculate, forNucleicAcid, forProtein, longDisplayName, range
-
-
-
-
Method Detail
-
moleculeType
public MoleculeType moleculeType()
- Specified by:
moleculeTypein interfaceTorsionAngleType- Specified by:
moleculeTypein classAverageTorsionAngleType- Returns:
- The value of the
moleculeTypeattribute
-
consideredAngles
public List<MasterTorsionAngleType> consideredAngles()
- Specified by:
consideredAnglesin classAverageTorsionAngleType- Returns:
- The list of angle types to calculate average from.
-
withMoleculeType
public final ImmutableAverageTorsionAngleType withMoleculeType(MoleculeType value)
Copy the current immutable object by setting a value for themoleculeTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for moleculeType- Returns:
- A modified copy of the
thisobject
-
withConsideredAngles
public final ImmutableAverageTorsionAngleType withConsideredAngles(MasterTorsionAngleType... elements)
Copy the current immutable object with elements that replace the content ofconsideredAngles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withConsideredAngles
public final ImmutableAverageTorsionAngleType withConsideredAngles(Iterable<? extends MasterTorsionAngleType> elements)
Copy the current immutable object with elements that replace the content ofconsideredAngles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of consideredAngles elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAverageTorsionAngleTypethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:moleculeType,consideredAngles.
-
toString
public String toString()
Prints the immutable valueAverageTorsionAngleTypewith attribute values.
-
shortDisplayName
public String shortDisplayName()
Returns a lazily initialized value of the
shortDisplayNameattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Specified by:
shortDisplayNamein interfaceDisplayableExportable- Overrides:
shortDisplayNamein classAverageTorsionAngleType- Returns:
- A lazily initialized value of the
shortDisplayNameattribute
-
exportName
public String exportName()
Returns a lazily initialized value of the
exportNameattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Specified by:
exportNamein interfaceDisplayableExportable- Overrides:
exportNamein classAverageTorsionAngleType- Returns:
- A lazily initialized value of the
exportNameattribute
-
consideredBasicAngleTypes
protected Set<TorsionAngleType> consideredBasicAngleTypes()
Returns a lazily initialized value of the
consideredBasicAngleTypesattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
consideredBasicAngleTypesin classAverageTorsionAngleType- Returns:
- A lazily initialized value of the
consideredBasicAngleTypesattribute
-
of
public static ImmutableAverageTorsionAngleType of(MoleculeType moleculeType, List<MasterTorsionAngleType> consideredAngles)
Construct a new immutableAverageTorsionAngleTypeinstance.- Parameters:
moleculeType- The value for themoleculeTypeattributeconsideredAngles- The value for theconsideredAnglesattribute- Returns:
- An immutable AverageTorsionAngleType instance
-
of
public static ImmutableAverageTorsionAngleType of(MoleculeType moleculeType, Iterable<? extends MasterTorsionAngleType> consideredAngles)
Construct a new immutableAverageTorsionAngleTypeinstance.- Parameters:
moleculeType- The value for themoleculeTypeattributeconsideredAngles- The value for theconsideredAnglesattribute- Returns:
- An immutable AverageTorsionAngleType instance
-
copyOf
public static ImmutableAverageTorsionAngleType copyOf(AverageTorsionAngleType instance)
Creates an immutable copy of aAverageTorsionAngleTypevalue. 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 AverageTorsionAngleType instance
-
builder
public static ImmutableAverageTorsionAngleType.Builder builder()
Creates a builder forImmutableAverageTorsionAngleType.ImmutableAverageTorsionAngleType.builder() .moleculeType(pl.poznan.put.pdb.analysis.MoleculeType) // requiredmoleculeType.addConsideredAngles|addAllConsideredAngles(pl.poznan.put.torsion.MasterTorsionAngleType) //consideredAngleselements .build();- Returns:
- A new ImmutableAverageTorsionAngleType builder
-
-