Class ImmutableConflictClique
java.lang.Object
pl.poznan.put.structure.pseudoknots.dp.ConflictClique
pl.poznan.put.structure.pseudoknots.dp.ImmutableConflictClique
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableConflictClique
extends ConflictClique
Immutable implementation of
ConflictClique.
Use the builder to create immutable instances:
ImmutableConflictClique.builder().
Use the static factory method to create immutable instances:
ImmutableConflictClique.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableConflictClique. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableConflictClique.static ImmutableConflictCliquecopyOf(ConflictClique instance) Creates an immutable copy of aConflictCliquevalue.booleanThis instance is equal to all instances ofImmutableConflictCliquethat have equal attribute values.inthashCode()Computes a hash code from attributes:regions.static ImmutableConflictCliqueConstruct a new immutableConflictCliqueinstance.static ImmutableConflictCliqueConstruct a new immutableConflictCliqueinstance.regions()toString()Prints the immutable valueConflictCliquewith attribute values.final ImmutableConflictCliquewithRegions(Iterable<? extends Region> elements) Copy the current immutable object with elements that replace the content ofregions.final ImmutableConflictCliquewithRegions(Region... elements) Copy the current immutable object with elements that replace the content ofregions.Methods inherited from class pl.poznan.put.structure.pseudoknots.dp.ConflictClique
endpoint, endpointCount, findRegion, indexOfEndpoint, size
-
Method Details
-
regions
- Specified by:
regionsin classConflictClique- Returns:
- The set of regions in this conflict clique.
-
withRegions
Copy the current immutable object with elements that replace the content ofregions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRegions
Copy the current immutable object with elements that replace the content ofregions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of regions elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableConflictCliquethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:regions. -
toString
Prints the immutable valueConflictCliquewith attribute values. -
sortedEndpoints
Returns a lazily initialized value of the
sortedEndpointsattribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
sortedEndpointsin classConflictClique- Returns:
- A lazily initialized value of the
sortedEndpointsattribute
-
of
Construct a new immutableConflictCliqueinstance.- Parameters:
regions- The value for theregionsattribute- Returns:
- An immutable ConflictClique instance
-
of
Construct a new immutableConflictCliqueinstance.- Parameters:
regions- The value for theregionsattribute- Returns:
- An immutable ConflictClique instance
-
copyOf
Creates an immutable copy of aConflictCliquevalue. 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 ConflictClique instance
-
builder
Creates a builder forImmutableConflictClique.ImmutableConflictClique.builder() .addRegions|addAllRegions(pl.poznan.put.structure.pseudoknots.Region) //regionselements .build();- Returns:
- A new ImmutableConflictClique builder
-