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 ofPhosphate.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 Modifier and Type Class Description static classImmutablePhosphate.BuilderBuilds instances of typeImmutablePhosphate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePhosphate.Builderbuilder()Creates a builder forImmutablePhosphate.static ImmutablePhosphatecopyOf(Phosphate instance)Creates an immutable copy of aPhosphatevalue.booleanequals(Object another)This 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 ofPhosphateStringtoString()Prints the immutable valuePhosphate.-
Methods inherited from class pl.poznan.put.rna.Phosphate
additionalAtoms, nucleotideComponentType, requiredAtoms
-
-
-
-
Method Detail
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutablePhosphatethat have equal attribute values.
-
hashCode
public int hashCode()
Returns a constant hash code value.
-
toString
public String toString()
Prints the immutable valuePhosphate.
-
of
public static ImmutablePhosphate of()
Returns the default immutable singleton value ofPhosphate- Returns:
- An immutable instance of Phosphate
-
copyOf
public static ImmutablePhosphate copyOf(Phosphate instance)
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
public static ImmutablePhosphate.Builder builder()
Creates a builder forImmutablePhosphate.ImmutablePhosphate.builder() .build();- Returns:
- A new ImmutablePhosphate builder
-
-