Package pl.poznan.put.rna
Class ImmutableStandardReferenceFrame
- java.lang.Object
-
- pl.poznan.put.rna.StandardReferenceFrame
-
- pl.poznan.put.rna.ImmutableStandardReferenceFrame
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableStandardReferenceFrame extends StandardReferenceFrame
Immutable implementation ofStandardReferenceFrame.Use the builder to create immutable instances:
ImmutableStandardReferenceFrame.builder(). Use the static factory method to create immutable instances:ImmutableStandardReferenceFrame.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableStandardReferenceFrame.BuilderBuilds instances of typeImmutableStandardReferenceFrame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableStandardReferenceFrame.Builderbuilder()Creates a builder forImmutableStandardReferenceFrame.static ImmutableStandardReferenceFramecopyOf(StandardReferenceFrame instance)Creates an immutable copy of aStandardReferenceFramevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableStandardReferenceFramethat have equal attribute values.inthashCode()Computes a hash code from attributes:origin,x,y,z,longAxisAtom.Optional<PdbAtomLine>longAxisAtom()static ImmutableStandardReferenceFrameof(org.apache.commons.math3.geometry.euclidean.threed.Vector3D origin, org.apache.commons.math3.geometry.euclidean.threed.Vector3D x, org.apache.commons.math3.geometry.euclidean.threed.Vector3D y, org.apache.commons.math3.geometry.euclidean.threed.Vector3D z)Construct a new immutableStandardReferenceFrameinstance.org.apache.commons.math3.geometry.euclidean.threed.Vector3Dorigin()StringtoString()Prints the immutable valueStandardReferenceFramewith attribute values.ImmutableStandardReferenceFramewithLongAxisAtom(Optional<PdbAtomLine> value)Copy the current immutable object by setting a value for thelongAxisAtomattribute.ImmutableStandardReferenceFramewithOrigin(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)Copy the current immutable object by setting a value for theoriginattribute.ImmutableStandardReferenceFramewithX(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)Copy the current immutable object by setting a value for thexattribute.ImmutableStandardReferenceFramewithY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)Copy the current immutable object by setting a value for theyattribute.ImmutableStandardReferenceFramewithZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)Copy the current immutable object by setting a value for thezattribute.org.apache.commons.math3.geometry.euclidean.threed.Vector3Dx()org.apache.commons.math3.geometry.euclidean.threed.Vector3Dy()org.apache.commons.math3.geometry.euclidean.threed.Vector3Dz()-
Methods inherited from class pl.poznan.put.rna.StandardReferenceFrame
ofBasePair, ofResidue
-
-
-
-
Method Detail
-
origin
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D origin()
- Specified by:
originin classStandardReferenceFrame- Returns:
- The value of the
originattribute
-
x
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D x()
- Specified by:
xin classStandardReferenceFrame- Returns:
- The value of the
xattribute
-
y
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D y()
- Specified by:
yin classStandardReferenceFrame- Returns:
- The value of the
yattribute
-
z
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D z()
- Specified by:
zin classStandardReferenceFrame- Returns:
- The value of the
zattribute
-
longAxisAtom
public Optional<PdbAtomLine> longAxisAtom()
- Overrides:
longAxisAtomin classStandardReferenceFrame- Returns:
- The value of the
longAxisAtomattribute
-
withOrigin
public final ImmutableStandardReferenceFrame withOrigin(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)
Copy the current immutable object by setting a value for theoriginattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for origin- Returns:
- A modified copy of the
thisobject
-
withX
public final ImmutableStandardReferenceFrame withX(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)
Copy the current immutable object by setting a value for thexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for x- Returns:
- A modified copy of the
thisobject
-
withY
public final ImmutableStandardReferenceFrame withY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)
Copy the current immutable object by setting a value for theyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for y- Returns:
- A modified copy of the
thisobject
-
withZ
public final ImmutableStandardReferenceFrame withZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D value)
Copy the current immutable object by setting a value for thezattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for z- Returns:
- A modified copy of the
thisobject
-
withLongAxisAtom
public final ImmutableStandardReferenceFrame withLongAxisAtom(Optional<PdbAtomLine> value)
Copy the current immutable object by setting a value for thelongAxisAtomattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for longAxisAtom- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableStandardReferenceFramethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:origin,x,y,z,longAxisAtom.
-
toString
public String toString()
Prints the immutable valueStandardReferenceFramewith attribute values.
-
of
public static ImmutableStandardReferenceFrame of(org.apache.commons.math3.geometry.euclidean.threed.Vector3D origin, org.apache.commons.math3.geometry.euclidean.threed.Vector3D x, org.apache.commons.math3.geometry.euclidean.threed.Vector3D y, org.apache.commons.math3.geometry.euclidean.threed.Vector3D z)
Construct a new immutableStandardReferenceFrameinstance.- Parameters:
origin- The value for theoriginattributex- The value for thexattributey- The value for theyattributez- The value for thezattribute- Returns:
- An immutable StandardReferenceFrame instance
-
copyOf
public static ImmutableStandardReferenceFrame copyOf(StandardReferenceFrame instance)
Creates an immutable copy of aStandardReferenceFramevalue. 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 StandardReferenceFrame instance
-
builder
public static ImmutableStandardReferenceFrame.Builder builder()
Creates a builder forImmutableStandardReferenceFrame.ImmutableStandardReferenceFrame.builder() .origin(org.apache.commons.math3.geometry.euclidean.threed.Vector3D) // requiredorigin.x(org.apache.commons.math3.geometry.euclidean.threed.Vector3D) // requiredx.y(org.apache.commons.math3.geometry.euclidean.threed.Vector3D) // requiredy.z(org.apache.commons.math3.geometry.euclidean.threed.Vector3D) // requiredz.longAxisAtom(Optional<pl.poznan.put.pdb.PdbAtomLine>) // optionallongAxisAtom.build();- Returns:
- A new ImmutableStandardReferenceFrame builder
-
-