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 classBuilds instances of typeImmutableDefaultConverter. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDefaultConverter.static ImmutableDefaultConvertercopyOf(DefaultConverter instance) Creates an immutable copy of aDefaultConvertervalue.booleanThis instance is equal to all instances ofImmutableDefaultConverterthat have equal attribute values.inthashCode()Computes a hash code from attributes:pseudoknotFinder,maxSolutions.intstatic ImmutableDefaultConverterof()Returns the default immutable singleton value ofDefaultConvertertoString()Prints the immutable valueDefaultConverterwith attribute values.withMaxSolutions(int value) Copy the current immutable object by setting a value for themaxSolutionsattribute.Copy the current immutable object by setting a value for thepseudoknotFinderattribute.Methods inherited from class pl.poznan.put.structure.formats.DefaultConverter
convert
-
Method Details
-
pseudoknotFinder
- Overrides:
pseudoknotFinderin classDefaultConverter- Returns:
- The finder of pseudoknots (
MinGainby default).
-
maxSolutions
public int maxSolutions()- Overrides:
maxSolutionsin classDefaultConverter- Returns:
- The number of solutions to return (1 by default).
-
withPseudoknotFinder
Copy the current immutable object by setting a value for thepseudoknotFinderattribute. 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
thisobject
-
withMaxSolutions
Copy the current immutable object by setting a value for themaxSolutionsattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableDefaultConverterthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:pseudoknotFinder,maxSolutions. -
toString
Prints the immutable valueDefaultConverterwith attribute values. -
of
Returns the default immutable singleton value ofDefaultConverter- Returns:
- An immutable instance of DefaultConverter
-
copyOf
Creates an immutable copy of aDefaultConvertervalue. 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) // optionalpseudoknotFinder.maxSolutions(int) // optionalmaxSolutions.build();- Returns:
- A new ImmutableDefaultConverter builder
-