Package pl.poznan.put.torsion
Class ImmutableAtomBasedTorsionAngleType.Builder
- java.lang.Object
-
- pl.poznan.put.torsion.ImmutableAtomBasedTorsionAngleType.Builder
-
- Enclosing class:
- ImmutableAtomBasedTorsionAngleType
@NotThreadSafe public static final class ImmutableAtomBasedTorsionAngleType.Builder extends Object
Builds instances of typeImmutableAtomBasedTorsionAngleType. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableAtomBasedTorsionAngleType.Builderatoms(Quadruple<AtomName> atoms)Initializes the value for theatomsattribute.ImmutableAtomBasedTorsionAngleTypebuild()Builds a newImmutableAtomBasedTorsionAngleType.ImmutableAtomBasedTorsionAngleType.BuilderexportName(String exportName)Initializes the value for theexportNameattribute.ImmutableAtomBasedTorsionAngleType.Builderfrom(DisplayableExportable instance)Fill a builder with attribute values from the providedpl.poznan.put.interfaces.DisplayableExportableinstance.ImmutableAtomBasedTorsionAngleType.Builderfrom(AtomBasedTorsionAngleType instance)Fill a builder with attribute values from the providedpl.poznan.put.torsion.AtomBasedTorsionAngleTypeinstance.ImmutableAtomBasedTorsionAngleType.Builderfrom(TorsionAngleType instance)Fill a builder with attribute values from the providedpl.poznan.put.torsion.TorsionAngleTypeinstance.ImmutableAtomBasedTorsionAngleType.BuilderisPseudoTorsion(boolean isPseudoTorsion)Initializes the value for theisPseudoTorsionattribute.ImmutableAtomBasedTorsionAngleType.BuildermoleculeType(MoleculeType moleculeType)Initializes the value for themoleculeTypeattribute.ImmutableAtomBasedTorsionAngleType.BuilderresidueRule(Quadruple<Integer> residueRule)Initializes the value for theresidueRuleattribute.ImmutableAtomBasedTorsionAngleType.BuildershortDisplayName(String shortDisplayName)Initializes the value for theshortDisplayNameattribute.
-
-
-
Method Detail
-
from
public final ImmutableAtomBasedTorsionAngleType.Builder from(AtomBasedTorsionAngleType instance)
Fill a builder with attribute values from the providedpl.poznan.put.torsion.AtomBasedTorsionAngleTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableAtomBasedTorsionAngleType.Builder from(TorsionAngleType instance)
Fill a builder with attribute values from the providedpl.poznan.put.torsion.TorsionAngleTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableAtomBasedTorsionAngleType.Builder from(DisplayableExportable instance)
Fill a builder with attribute values from the providedpl.poznan.put.interfaces.DisplayableExportableinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
moleculeType
public final ImmutableAtomBasedTorsionAngleType.Builder moleculeType(MoleculeType moleculeType)
Initializes the value for themoleculeTypeattribute.- Parameters:
moleculeType- The value for moleculeType- Returns:
thisbuilder for use in a chained invocation
-
shortDisplayName
public final ImmutableAtomBasedTorsionAngleType.Builder shortDisplayName(String shortDisplayName)
Initializes the value for theshortDisplayNameattribute.- Parameters:
shortDisplayName- The value for shortDisplayName- Returns:
thisbuilder for use in a chained invocation
-
exportName
public final ImmutableAtomBasedTorsionAngleType.Builder exportName(String exportName)
Initializes the value for theexportNameattribute.- Parameters:
exportName- The value for exportName- Returns:
thisbuilder for use in a chained invocation
-
atoms
public final ImmutableAtomBasedTorsionAngleType.Builder atoms(Quadruple<AtomName> atoms)
Initializes the value for theatomsattribute.- Parameters:
atoms- The value for atoms- Returns:
thisbuilder for use in a chained invocation
-
residueRule
public final ImmutableAtomBasedTorsionAngleType.Builder residueRule(Quadruple<Integer> residueRule)
Initializes the value for theresidueRuleattribute.- Parameters:
residueRule- The value for residueRule- Returns:
thisbuilder for use in a chained invocation
-
isPseudoTorsion
public final ImmutableAtomBasedTorsionAngleType.Builder isPseudoTorsion(boolean isPseudoTorsion)
Initializes the value for theisPseudoTorsionattribute.If not set, this attribute will have a default value as returned by the initializer of
isPseudoTorsion.- Parameters:
isPseudoTorsion- The value for isPseudoTorsion- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableAtomBasedTorsionAngleType build()
Builds a newImmutableAtomBasedTorsionAngleType.- Returns:
- An immutable instance of AtomBasedTorsionAngleType
- Throws:
IllegalStateException- if any required attributes are missing
-
-