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 ofRibose.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 Modifier and Type Class Description static classImmutableRibose.BuilderBuilds instances of typeImmutableRibose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description static ImmutableRibose.Builderbuilder()Creates a builder forImmutableRibose.static ImmutableRibosecopyOf(Ribose instance)Creates an immutable copy of aRibosevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRibosethat have equal attribute values.inthashCode()Returns a constant hash code value.default NucleotideComponentTypenucleotideComponentType()static ImmutableRiboseof()Returns the default immutable singleton value ofRiboseStringtoString()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 Detail
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableRibosethat have equal attribute values.
-
hashCode
public int hashCode()
Returns a constant hash code value.
-
toString
public String toString()
Prints the immutable valueRibose.
-
of
public static ImmutableRibose of()
Returns the default immutable singleton value ofRibose- Returns:
- An immutable instance of Ribose
-
copyOf
public static ImmutableRibose copyOf(Ribose instance)
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
public static ImmutableRibose.Builder builder()
Creates a builder forImmutableRibose.ImmutableRibose.builder() .build();- Returns:
- A new ImmutableRibose builder
-
nucleotideComponentType
public default NucleotideComponentType nucleotideComponentType()
- Specified by:
nucleotideComponentTypein interfaceNucleicAcidResidueComponent- Returns:
- The type of this nucleotide component.
-
-