Package pl.poznan.put.structure.formats
Class ImmutableDefaultConverter
java.lang.Object
pl.poznan.put.structure.formats.DefaultConverter
pl.poznan.put.structure.formats.ImmutableDefaultConverter
- All Implemented Interfaces:
Converter
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableDefaultConverter
extends DefaultConverter
Immutable implementation of
DefaultConverter
.
Use the builder to create immutable instances:
ImmutableDefaultConverter.builder()
.
Use the static factory method to get the default singleton instance:
ImmutableDefaultConverter.of()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDefaultConverter
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDefaultConverter
.static ImmutableDefaultConverter
copyOf
(DefaultConverter instance) Creates an immutable copy of aDefaultConverter
value.boolean
This instance is equal to all instances ofImmutableDefaultConverter
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:pseudoknotFinder
,maxSolutions
.int
static ImmutableDefaultConverter
of()
Returns the default immutable singleton value ofDefaultConverter
toString()
Prints the immutable valueDefaultConverter
with attribute values.withMaxSolutions
(int value) Copy the current immutable object by setting a value for themaxSolutions
attribute.Copy the current immutable object by setting a value for thepseudoknotFinder
attribute.Methods inherited from class pl.poznan.put.structure.formats.DefaultConverter
convert
-
Method Details
-
pseudoknotFinder
- Overrides:
pseudoknotFinder
in classDefaultConverter
- Returns:
- The finder of pseudoknots (
MinGain
by default).
-
maxSolutions
public int maxSolutions()- Overrides:
maxSolutions
in classDefaultConverter
- Returns:
- The number of solutions to return (1 by default).
-
withPseudoknotFinder
Copy the current immutable object by setting a value for thepseudoknotFinder
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pseudoknotFinder- Returns:
- A modified copy of the
this
object
-
withMaxSolutions
Copy the current immutable object by setting a value for themaxSolutions
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maxSolutions- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableDefaultConverter
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:pseudoknotFinder
,maxSolutions
. -
toString
Prints the immutable valueDefaultConverter
with attribute values. -
of
Returns the default immutable singleton value ofDefaultConverter
- Returns:
- An immutable instance of DefaultConverter
-
copyOf
Creates an immutable copy of aDefaultConverter
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 DefaultConverter instance
-
builder
Creates a builder forImmutableDefaultConverter
.ImmutableDefaultConverter.builder() .pseudoknotFinder(pl.poznan.put.structure.pseudoknots.PseudoknotFinder) // optional
pseudoknotFinder
.maxSolutions(int) // optionalmaxSolutions
.build();- Returns:
- A new ImmutableDefaultConverter builder
-