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 ofAnalyzedBasePair.Use the builder to create immutable instances:
ImmutableAnalyzedBasePair.builder(). Use the static factory method to create immutable instances:ImmutableAnalyzedBasePair.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableAnalyzedBasePair.BuilderBuilds instances of typeImmutableAnalyzedBasePair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasePairbasePair()BPhbph()BRbr()static ImmutableAnalyzedBasePair.Builderbuilder()Creates a builder forImmutableAnalyzedBasePair.static ImmutableAnalyzedBasePaircopyOf(AnalyzedBasePair instance)Creates an immutable copy of aAnalyzedBasePairvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableAnalyzedBasePairthat have equal attribute values.inthashCode()Computes a hash code from attributes:basePair,interactionType,saenger,leontisWesthof,bph,br.InteractionTypeinteractionType()booleanisRepresented()LeontisWesthofleontisWesthof()static ImmutableAnalyzedBasePairof(BasePair basePair)Construct a new immutableAnalyzedBasePairinstance.Saengersaenger()StringtoString()Prints the immutable valueAnalyzedBasePairwith attribute values.ImmutableAnalyzedBasePairwithBasePair(BasePair value)Copy the current immutable object by setting a value for thebasePairattribute.ImmutableAnalyzedBasePairwithBph(BPh value)Copy the current immutable object by setting a value for thebphattribute.ImmutableAnalyzedBasePairwithBr(BR value)Copy the current immutable object by setting a value for thebrattribute.ImmutableAnalyzedBasePairwithInteractionType(InteractionType value)Copy the current immutable object by setting a value for theinteractionTypeattribute.ImmutableAnalyzedBasePairwithIsRepresented(boolean value)Copy the current immutable object by setting a value for theisRepresentedattribute.ImmutableAnalyzedBasePairwithLeontisWesthof(LeontisWesthof value)Copy the current immutable object by setting a value for theleontisWesthofattribute.ImmutableAnalyzedBasePairwithSaenger(Saenger value)Copy the current immutable object by setting a value for thesaengerattribute.-
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 Detail
-
basePair
public BasePair basePair()
- Specified by:
basePairin interfaceClassifiedBasePair- Specified by:
basePairin classAnalyzedBasePair- Returns:
- The value of the
basePairattribute
-
interactionType
public InteractionType interactionType()
- Specified by:
interactionTypein interfaceClassifiedBasePair- Overrides:
interactionTypein classAnalyzedBasePair- Returns:
- The value of the
interactionTypeattribute
-
saenger
public Saenger saenger()
- Specified by:
saengerin interfaceClassifiedBasePair- Overrides:
saengerin classAnalyzedBasePair- Returns:
- The value of the
saengerattribute
-
leontisWesthof
public LeontisWesthof leontisWesthof()
- Specified by:
leontisWesthofin interfaceClassifiedBasePair- Overrides:
leontisWesthofin classAnalyzedBasePair- Returns:
- The value of the
leontisWesthofattribute
-
bph
public BPh bph()
- Specified by:
bphin interfaceClassifiedBasePair- Overrides:
bphin classAnalyzedBasePair- Returns:
- The value of the
bphattribute
-
br
public BR br()
- Specified by:
brin interfaceClassifiedBasePair- Overrides:
brin classAnalyzedBasePair- Returns:
- The value of the
brattribute
-
isRepresented
public boolean isRepresented()
- Specified by:
isRepresentedin interfaceClassifiedBasePair- Overrides:
isRepresentedin classAnalyzedBasePair- Returns:
- The value of the
isRepresentedattribute
-
withBasePair
public final ImmutableAnalyzedBasePair withBasePair(BasePair value)
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
public final ImmutableAnalyzedBasePair withInteractionType(InteractionType value)
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
public final ImmutableAnalyzedBasePair withSaenger(Saenger value)
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
public final ImmutableAnalyzedBasePair withLeontisWesthof(LeontisWesthof value)
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
public final ImmutableAnalyzedBasePair withBph(BPh value)
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
public final ImmutableAnalyzedBasePair withBr(BR value)
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
-
withIsRepresented
public final ImmutableAnalyzedBasePair withIsRepresented(boolean value)
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
public boolean equals(@Nullable Object another)
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.
-
toString
public String toString()
Prints the immutable valueAnalyzedBasePairwith attribute values.
-
of
public static ImmutableAnalyzedBasePair of(BasePair basePair)
Construct a new immutableAnalyzedBasePairinstance.- Parameters:
basePair- The value for thebasePairattribute- Returns:
- An immutable AnalyzedBasePair instance
-
copyOf
public static ImmutableAnalyzedBasePair copyOf(AnalyzedBasePair instance)
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
public static ImmutableAnalyzedBasePair.Builder 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.isRepresented(boolean) // optionalisRepresented.build();- Returns:
- A new ImmutableAnalyzedBasePair builder
-
-