Package pl.poznan.put.rna
Class ImmutableRibose
java.lang.Object
pl.poznan.put.rna.Ribose
pl.poznan.put.rna.ImmutableRibose
- All Implemented Interfaces:
ResidueComponent
,NucleicAcidResidueComponent
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableRibose
extends Ribose
Immutable implementation of
Ribose
.
Use the builder to create immutable instances:
ImmutableRibose.builder()
.
Use the static factory method to get the default singleton instance:
ImmutableRibose.of()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRibose.Builder
builder()
Creates a builder forImmutableRibose
.static ImmutableRibose
Creates an immutable copy of aRibose
value.boolean
This instance is equal to all instances ofImmutableRibose
that have equal attribute values.int
hashCode()
Returns a constant hash code value.default NucleotideComponentType
static ImmutableRibose
of()
Returns the default immutable singleton value ofRibose
toString()
Prints the immutable valueRibose
.Methods inherited from class pl.poznan.put.rna.Ribose
requiredAtoms
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface pl.poznan.put.pdb.analysis.ResidueComponent
additionalAtoms
-
Method Details
-
equals
This instance is equal to all instances ofImmutableRibose
that have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueRibose
. -
of
Returns the default immutable singleton value ofRibose
- Returns:
- An immutable instance of Ribose
-
copyOf
Creates an immutable copy of aRibose
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 Ribose instance
-
builder
Creates a builder forImmutableRibose
.ImmutableRibose.builder() .build();
- Returns:
- A new ImmutableRibose builder
-
nucleotideComponentType
- Specified by:
nucleotideComponentType
in interfaceNucleicAcidResidueComponent
- Returns:
- The type of this nucleotide component.
-