Class ImmutableSinglePointCrossover
java.lang.Object
net.bmahe.genetics4j.core.spec.combination.SinglePointCrossover
net.bmahe.genetics4j.core.spec.combination.ImmutableSinglePointCrossover
- All Implemented Interfaces:
CombinationPolicy
@Generated(from="SinglePointCrossover",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSinglePointCrossover
extends SinglePointCrossover
Immutable implementation of
SinglePointCrossover
.
Use the builder to create immutable instances:
ImmutableSinglePointCrossover.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSinglePointCrossover
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSinglePointCrossover
.copyOf
(SinglePointCrossover instance) Creates an immutable copy of aSinglePointCrossover
value.boolean
This instance is equal to all instances ofImmutableSinglePointCrossover
that have equal attribute values.private boolean
int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueSinglePointCrossover
.Methods inherited from class net.bmahe.genetics4j.core.spec.combination.SinglePointCrossover
build
-
Constructor Details
-
ImmutableSinglePointCrossover
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableSinglePointCrossover
that have equal attribute values. -
equalsByValue
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueSinglePointCrossover
. -
copyOf
Creates an immutable copy of aSinglePointCrossover
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 SinglePointCrossover instance
-
builder
Creates a builder forImmutableSinglePointCrossover
.ImmutableSinglePointCrossover.builder() .build();
- Returns:
- A new ImmutableSinglePointCrossover builder
-