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 Summary
Nested ClassesNested classes/interfaces inherited from class pl.poznan.put.structure.formats.BpSeq
BpSeq.Entry
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableBpSeq.Builder
builder()
Creates a builder forImmutableBpSeq
.static ImmutableBpSeq
Creates an immutable copy of aBpSeq
value.entries()
boolean
This instance is equal to all instances ofImmutableBpSeq
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:entries
.static ImmutableBpSeq
of
(Iterable<? extends BpSeq.Entry> entries) Construct a new immutableBpSeq
instance.static ImmutableBpSeq
of
(SortedSet<BpSeq.Entry> entries) Construct a new immutableBpSeq
instance.final ImmutableBpSeq
withEntries
(Iterable<? extends BpSeq.Entry> elements) Copy the current immutable object with elements that replace the content ofentries
.final ImmutableBpSeq
withEntries
(BpSeq.Entry... elements) Copy the current immutable object with elements that replace the content ofentries
.Methods inherited from class pl.poznan.put.structure.formats.BpSeq
fromBasePairs, fromCt, fromDotBracket, fromString, hasAnyPair, paired, sequence, size, toString, validate, withoutIsolatedPairs, withoutPair
-
Method Details
-
entries
-
withEntries
Copy the current immutable object with elements that replace the content ofentries
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withEntries
Copy 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
this
object
-
equals
This instance is equal to all instances ofImmutableBpSeq
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:entries
. -
of
Construct a new immutableBpSeq
instance.- Parameters:
entries
- The value for theentries
attribute- Returns:
- An immutable BpSeq instance
-
of
Construct a new immutableBpSeq
instance.- Parameters:
entries
- The value for theentries
attribute- Returns:
- An immutable BpSeq instance
-
copyOf
Creates an immutable copy of aBpSeq
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 BpSeq instance
-
builder
Creates a builder forImmutableBpSeq
.ImmutableBpSeq.builder() .addEntries|addAllEntries(pl.poznan.put.structure.formats.BpSeq.Entry) //
entries
elements .build();- Returns:
- A new ImmutableBpSeq builder
-