Class ImmutableFitnessComparison
java.lang.Object
net.bmahe.genetics4j.neat.spec.combination.parentcompare.ImmutableFitnessComparison
- All Implemented Interfaces:
FitnessComparison
,ParentComparisonPolicy
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableFitnessComparison
extends Object
implements FitnessComparison
Immutable implementation of
FitnessComparison
.
Use the builder to create immutable instances:
new FitnessComparison.Builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builds instances of typeImmutableFitnessComparison
. -
Constructor Summary
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableFitnessComparison
copyOf
(FitnessComparison instance) Creates an immutable copy of aFitnessComparison
value.boolean
This instance is equal to all instances ofImmutableFitnessComparison
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableFitnessComparison another) int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueFitnessComparison
.
-
Constructor Details
-
ImmutableFitnessComparison
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableFitnessComparison
that have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueFitnessComparison
. -
copyOf
Creates an immutable copy of aFitnessComparison
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 FitnessComparison instance
-