Package pl.poznan.put.structure
Class ImmutableAnalyzedBasePair
java.lang.Object
pl.poznan.put.structure.AnalyzedBasePair
pl.poznan.put.structure.ImmutableAnalyzedBasePair
- All Implemented Interfaces:
Serializable
,Comparable<ClassifiedBasePair>
,ClassifiedBasePair
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableAnalyzedBasePair
extends AnalyzedBasePair
Immutable implementation of
AnalyzedBasePair
.
Use the builder to create immutable instances:
ImmutableAnalyzedBasePair.builder()
.
Use the static factory method to create immutable instances:
ImmutableAnalyzedBasePair.of()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableAnalyzedBasePair
. -
Method Summary
Modifier and TypeMethodDescriptionbasePair()
bph()
br()
builder()
Creates a builder forImmutableAnalyzedBasePair
.static ImmutableAnalyzedBasePair
copyOf
(AnalyzedBasePair instance) Creates an immutable copy of aAnalyzedBasePair
value.boolean
This instance is equal to all instances ofImmutableAnalyzedBasePair
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:basePair
,interactionType
,saenger
,leontisWesthof
,bph
,br
,stackingTopology
.boolean
static ImmutableAnalyzedBasePair
Construct a new immutableAnalyzedBasePair
instance.saenger()
toString()
Prints the immutable valueAnalyzedBasePair
with attribute values.withBasePair
(BasePair value) Copy the current immutable object by setting a value for thebasePair
attribute.Copy the current immutable object by setting a value for thebph
attribute.Copy the current immutable object by setting a value for thebr
attribute.Copy the current immutable object by setting a value for theinteractionType
attribute.withIsRepresented
(boolean value) Copy the current immutable object by setting a value for theisRepresented
attribute.withLeontisWesthof
(LeontisWesthof value) Copy the current immutable object by setting a value for theleontisWesthof
attribute.withSaenger
(Saenger value) Copy the current immutable object by setting a value for thesaenger
attribute.Copy the current immutable object by setting a value for thestackingTopology
attribute.Methods inherited from class pl.poznan.put.structure.AnalyzedBasePair
getIsRepresented, invert
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface pl.poznan.put.structure.ClassifiedBasePair
compareTo, generateComment, isBasePhosphate, isBaseRibose, isCanonical, isNonCanonical, isPairing, isStacking
-
Method Details
-
basePair
- Specified by:
basePair
in interfaceClassifiedBasePair
- Specified by:
basePair
in classAnalyzedBasePair
- Returns:
- The value of the
basePair
attribute
-
interactionType
- Specified by:
interactionType
in interfaceClassifiedBasePair
- Overrides:
interactionType
in classAnalyzedBasePair
- Returns:
- The value of the
interactionType
attribute
-
saenger
- Specified by:
saenger
in interfaceClassifiedBasePair
- Overrides:
saenger
in classAnalyzedBasePair
- Returns:
- The value of the
saenger
attribute
-
leontisWesthof
- Specified by:
leontisWesthof
in interfaceClassifiedBasePair
- Overrides:
leontisWesthof
in classAnalyzedBasePair
- Returns:
- The value of the
leontisWesthof
attribute
-
bph
- Specified by:
bph
in interfaceClassifiedBasePair
- Overrides:
bph
in classAnalyzedBasePair
- Returns:
- The value of the
bph
attribute
-
br
- Specified by:
br
in interfaceClassifiedBasePair
- Overrides:
br
in classAnalyzedBasePair
- Returns:
- The value of the
br
attribute
-
stackingTopology
- Specified by:
stackingTopology
in interfaceClassifiedBasePair
- Overrides:
stackingTopology
in classAnalyzedBasePair
- Returns:
- The value of the
stackingTopology
attribute
-
isRepresented
public boolean isRepresented()- Specified by:
isRepresented
in interfaceClassifiedBasePair
- Overrides:
isRepresented
in classAnalyzedBasePair
- Returns:
- The value of the
isRepresented
attribute
-
withBasePair
Copy the current immutable object by setting a value for thebasePair
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for basePair- Returns:
- A modified copy of the
this
object
-
withInteractionType
Copy the current immutable object by setting a value for theinteractionType
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for interactionType- Returns:
- A modified copy of the
this
object
-
withSaenger
Copy the current immutable object by setting a value for thesaenger
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for saenger- Returns:
- A modified copy of the
this
object
-
withLeontisWesthof
Copy the current immutable object by setting a value for theleontisWesthof
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for leontisWesthof- Returns:
- A modified copy of the
this
object
-
withBph
Copy the current immutable object by setting a value for thebph
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for bph- Returns:
- A modified copy of the
this
object
-
withBr
Copy the current immutable object by setting a value for thebr
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for br- Returns:
- A modified copy of the
this
object
-
withStackingTopology
Copy the current immutable object by setting a value for thestackingTopology
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for stackingTopology- Returns:
- A modified copy of the
this
object
-
withIsRepresented
Copy the current immutable object by setting a value for theisRepresented
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRepresented- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableAnalyzedBasePair
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:basePair
,interactionType
,saenger
,leontisWesthof
,bph
,br
,stackingTopology
. -
toString
Prints the immutable valueAnalyzedBasePair
with attribute values. -
of
Construct a new immutableAnalyzedBasePair
instance.- Parameters:
basePair
- The value for thebasePair
attribute- Returns:
- An immutable AnalyzedBasePair instance
-
copyOf
Creates an immutable copy of aAnalyzedBasePair
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 AnalyzedBasePair instance
-
builder
Creates a builder forImmutableAnalyzedBasePair
.ImmutableAnalyzedBasePair.builder() .basePair(pl.poznan.put.structure.BasePair) // required
basePair
.interactionType(pl.poznan.put.rna.InteractionType) // optionalinteractionType
.saenger(pl.poznan.put.notation.Saenger) // optionalsaenger
.leontisWesthof(pl.poznan.put.notation.LeontisWesthof) // optionalleontisWesthof
.bph(pl.poznan.put.notation.BPh) // optionalbph
.br(pl.poznan.put.notation.BR) // optionalbr
.stackingTopology(pl.poznan.put.notation.StackingTopology) // optionalstackingTopology
.isRepresented(boolean) // optionalisRepresented
.build();- Returns:
- A new ImmutableAnalyzedBasePair builder
-