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.Builder
builder()
Creates a builder forImmutablePhosphate
.static ImmutablePhosphate
Creates an immutable copy of aPhosphate
value.boolean
This instance is equal to all instances ofImmutablePhosphate
that have equal attribute values.int
hashCode()
Returns a constant hash code value.static ImmutablePhosphate
of()
Returns the default immutable singleton value ofPhosphate
toString()
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 ofImmutablePhosphate
that 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 aPhosphate
value. 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
-