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.Builderbuilder()Creates a builder forImmutableRibose.static ImmutableRiboseCreates an immutable copy of aRibosevalue.booleanThis instance is equal to all instances ofImmutableRibosethat have equal attribute values.inthashCode()Returns a constant hash code value.default NucleotideComponentTypestatic ImmutableRiboseof()Returns the default immutable singleton value ofRibosetoString()Prints the immutable valueRibose.Methods inherited from class pl.poznan.put.rna.Ribose
requiredAtomsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.poznan.put.pdb.analysis.ResidueComponent
additionalAtoms
-
Method Details
-
equals
This instance is equal to all instances ofImmutableRibosethat 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 aRibosevalue. 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:
nucleotideComponentTypein interfaceNucleicAcidResidueComponent- Returns:
- The type of this nucleotide component.
-