Package pl.poznan.put.structure.formats
Class ImmutableCt
java.lang.Object
pl.poznan.put.structure.formats.Ct
pl.poznan.put.structure.formats.ImmutableCt
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableCt
extends Ct
Immutable implementation of
Ct
.
Use the builder to create immutable instances:
ImmutableCt.builder()
.
Use the static factory method to create immutable instances:
ImmutableCt.of()
.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class pl.poznan.put.structure.formats.Ct
Ct.ExtendedEntry
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCt.Builder
builder()
Creates a builder forImmutableCt
.static ImmutableCt
Creates an immutable copy of aCt
value.entries()
boolean
This instance is equal to all instances ofImmutableCt
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:entries
.static ImmutableCt
of
(Iterable<? extends Ct.ExtendedEntry> entries) Construct a new immutableCt
instance.static ImmutableCt
of
(SortedSet<Ct.ExtendedEntry> entries) Construct a new immutableCt
instance.final ImmutableCt
withEntries
(Iterable<? extends Ct.ExtendedEntry> elements) Copy the current immutable object with elements that replace the content ofentries
.final ImmutableCt
withEntries
(Ct.ExtendedEntry... elements) Copy the current immutable object with elements that replace the content ofentries
.Methods inherited from class pl.poznan.put.structure.formats.Ct
fromBpSeq, fromBpSeqAndPdbModel, fromDotBracket, fromString, strandCount, 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 ofImmutableCt
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:entries
. -
of
Construct a new immutableCt
instance.- Parameters:
entries
- The value for theentries
attribute- Returns:
- An immutable Ct instance
-
of
Construct a new immutableCt
instance.- Parameters:
entries
- The value for theentries
attribute- Returns:
- An immutable Ct instance
-
copyOf
Creates an immutable copy of aCt
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 Ct instance
-
builder
Creates a builder forImmutableCt
.ImmutableCt.builder() .addEntries|addAllEntries(pl.poznan.put.structure.formats.Ct.ExtendedEntry) //
entries
elements .build();- Returns:
- A new ImmutableCt builder
-