Package pl.poznan.put.structure.formats
Class ImmutableBpSeq
java.lang.Object
pl.poznan.put.structure.formats.BpSeq
pl.poznan.put.structure.formats.ImmutableBpSeq
- All Implemented Interfaces:
- Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableBpSeq
extends BpSeq
Immutable implementation of 
BpSeq.
 
 Use the builder to create immutable instances:
 ImmutableBpSeq.builder().
 Use the static factory method to create immutable instances:
 ImmutableBpSeq.of().
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class pl.poznan.put.structure.formats.BpSeqBpSeq.Entry
- 
Method SummaryModifier and TypeMethodDescriptionstatic ImmutableBpSeq.Builderbuilder()Creates a builder forImmutableBpSeq.static ImmutableBpSeqCreates an immutable copy of aBpSeqvalue.entries()booleanThis instance is equal to all instances ofImmutableBpSeqthat have equal attribute values.inthashCode()Computes a hash code from attributes:entries.static ImmutableBpSeqof(Iterable<? extends BpSeq.Entry> entries) Construct a new immutableBpSeqinstance.static ImmutableBpSeqof(SortedSet<BpSeq.Entry> entries) Construct a new immutableBpSeqinstance.final ImmutableBpSeqwithEntries(Iterable<? extends BpSeq.Entry> elements) Copy the current immutable object with elements that replace the content ofentries.final ImmutableBpSeqwithEntries(BpSeq.Entry... elements) Copy the current immutable object with elements that replace the content ofentries.Methods inherited from class pl.poznan.put.structure.formats.BpSeqfromBasePairs, fromCt, fromDotBracket, fromString, hasAnyPair, paired, sequence, size, toString, validate, withoutIsolatedPairs, withoutPair
- 
Method Details- 
entries
- 
withEntriesCopy the current immutable object with elements that replace the content ofentries.- Parameters:
- elements- The elements to set
- Returns:
- A modified copy of thisobject
 
- 
withEntriesCopy the current immutable object with elements that replace the content ofentries. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
- elements- An iterable of entries elements to set
- Returns:
- A modified copy of thisobject
 
- 
equalsThis instance is equal to all instances ofImmutableBpSeqthat have equal attribute values.
- 
hashCodepublic int hashCode()Computes a hash code from attributes:entries.
- 
ofConstruct a new immutableBpSeqinstance.- Parameters:
- entries- The value for the- entriesattribute
- Returns:
- An immutable BpSeq instance
 
- 
ofConstruct a new immutableBpSeqinstance.- Parameters:
- entries- The value for the- entriesattribute
- Returns:
- An immutable BpSeq instance
 
- 
copyOfCreates an immutable copy of aBpSeqvalue. 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 BpSeq instance
 
- 
builderCreates a builder forImmutableBpSeq.ImmutableBpSeq.builder() .addEntries|addAllEntries(pl.poznan.put.structure.formats.BpSeq.Entry) //entrieselements .build();- Returns:
- A new ImmutableBpSeq builder
 
 
-