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 classBuilds instances of typeSinglePointCrossover. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSinglePointCrossover.static SinglePointCrossovercopyOf(SinglePointCrossover instance) Creates an immutable copy of aSinglePointCrossovervalue.booleanThis instance is equal to all instances ofImmutableSinglePointCrossoverthat have equal attribute values.private booleaninthashCode()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 ofImmutableSinglePointCrossoverthat 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 aSinglePointCrossovervalue. 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 forSinglePointCrossover.ImmutableSinglePointCrossover.builder() .build();- Returns:
- A new SinglePointCrossover builder
-