Package pl.poznan.put.rna
Class ImmutablePhosphate
java.lang.Object
pl.poznan.put.rna.Phosphate
pl.poznan.put.rna.ImmutablePhosphate
- All Implemented Interfaces:
ResidueComponent,NucleicAcidResidueComponent
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePhosphate
extends Phosphate
Immutable implementation of
Phosphate.
Use the builder to create immutable instances:
ImmutablePhosphate.builder().
Use the static factory method to get the default singleton instance:
ImmutablePhosphate.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutablePhosphate.Builderbuilder()Creates a builder forImmutablePhosphate.static ImmutablePhosphateCreates an immutable copy of aPhosphatevalue.booleanThis instance is equal to all instances ofImmutablePhosphatethat have equal attribute values.inthashCode()Returns a constant hash code value.static ImmutablePhosphateof()Returns the default immutable singleton value ofPhosphatetoString()Prints the immutable valuePhosphate.Methods inherited from class pl.poznan.put.rna.Phosphate
additionalAtoms, nucleotideComponentType, requiredAtoms
-
Method Details
-
equals
This instance is equal to all instances ofImmutablePhosphatethat have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valuePhosphate. -
of
Returns the default immutable singleton value ofPhosphate- Returns:
- An immutable instance of Phosphate
-
copyOf
Creates an immutable copy of aPhosphatevalue. 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 Phosphate instance
-
builder
Creates a builder forImmutablePhosphate.ImmutablePhosphate.builder() .build();- Returns:
- A new ImmutablePhosphate builder
-