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