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 classBuilds instances of typeImmutableAnalyzedBasePair. -
Method Summary
Modifier and TypeMethodDescriptionbasePair()bph()br()builder()Creates a builder forImmutableAnalyzedBasePair.static ImmutableAnalyzedBasePaircopyOf(AnalyzedBasePair instance) Creates an immutable copy of aAnalyzedBasePairvalue.booleanThis instance is equal to all instances ofImmutableAnalyzedBasePairthat have equal attribute values.inthashCode()Computes a hash code from attributes:basePair,interactionType,saenger,leontisWesthof,bph,br,stackingTopology.booleanstatic ImmutableAnalyzedBasePairConstruct a new immutableAnalyzedBasePairinstance.saenger()toString()Prints the immutable valueAnalyzedBasePairwith attribute values.withBasePair(BasePair value) Copy the current immutable object by setting a value for thebasePairattribute.Copy the current immutable object by setting a value for thebphattribute.Copy the current immutable object by setting a value for thebrattribute.Copy the current immutable object by setting a value for theinteractionTypeattribute.withIsRepresented(boolean value) Copy the current immutable object by setting a value for theisRepresentedattribute.withLeontisWesthof(LeontisWesthof value) Copy the current immutable object by setting a value for theleontisWesthofattribute.withSaenger(Saenger value) Copy the current immutable object by setting a value for thesaengerattribute.Copy the current immutable object by setting a value for thestackingTopologyattribute.Methods inherited from class pl.poznan.put.structure.AnalyzedBasePair
getIsRepresented, invertMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.poznan.put.structure.ClassifiedBasePair
compareTo, generateComment, isBasePhosphate, isBaseRibose, isCanonical, isNonCanonical, isPairing, isStacking
-
Method Details
-
basePair
- Specified by:
basePairin interfaceClassifiedBasePair- Specified by:
basePairin classAnalyzedBasePair- Returns:
- The value of the
basePairattribute
-
interactionType
- Specified by:
interactionTypein interfaceClassifiedBasePair- Overrides:
interactionTypein classAnalyzedBasePair- Returns:
- The value of the
interactionTypeattribute
-
saenger
- Specified by:
saengerin interfaceClassifiedBasePair- Overrides:
saengerin classAnalyzedBasePair- Returns:
- The value of the
saengerattribute
-
leontisWesthof
- Specified by:
leontisWesthofin interfaceClassifiedBasePair- Overrides:
leontisWesthofin classAnalyzedBasePair- Returns:
- The value of the
leontisWesthofattribute
-
bph
- Specified by:
bphin interfaceClassifiedBasePair- Overrides:
bphin classAnalyzedBasePair- Returns:
- The value of the
bphattribute
-
br
- Specified by:
brin interfaceClassifiedBasePair- Overrides:
brin classAnalyzedBasePair- Returns:
- The value of the
brattribute
-
stackingTopology
- Specified by:
stackingTopologyin interfaceClassifiedBasePair- Overrides:
stackingTopologyin classAnalyzedBasePair- Returns:
- The value of the
stackingTopologyattribute
-
isRepresented
public boolean isRepresented()- Specified by:
isRepresentedin interfaceClassifiedBasePair- Overrides:
isRepresentedin classAnalyzedBasePair- Returns:
- The value of the
isRepresentedattribute
-
withBasePair
Copy the current immutable object by setting a value for thebasePairattribute. 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
thisobject
-
withInteractionType
Copy the current immutable object by setting a value for theinteractionTypeattribute. 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
thisobject
-
withSaenger
Copy the current immutable object by setting a value for thesaengerattribute. 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
thisobject
-
withLeontisWesthof
Copy the current immutable object by setting a value for theleontisWesthofattribute. 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
thisobject
-
withBph
Copy the current immutable object by setting a value for thebphattribute. 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
thisobject
-
withBr
Copy the current immutable object by setting a value for thebrattribute. 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
thisobject
-
withStackingTopology
Copy the current immutable object by setting a value for thestackingTopologyattribute. 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
thisobject
-
withIsRepresented
Copy the current immutable object by setting a value for theisRepresentedattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableAnalyzedBasePairthat 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 valueAnalyzedBasePairwith attribute values. -
of
Construct a new immutableAnalyzedBasePairinstance.- Parameters:
basePair- The value for thebasePairattribute- Returns:
- An immutable AnalyzedBasePair instance
-
copyOf
Creates an immutable copy of aAnalyzedBasePairvalue. 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) // requiredbasePair.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
-