Class ImmutableOrderCrossover
java.lang.Object
net.bmahe.genetics4j.core.spec.combination.OrderCrossover
net.bmahe.genetics4j.core.spec.combination.ImmutableOrderCrossover
- All Implemented Interfaces:
CombinationPolicy
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableOrderCrossover
extends OrderCrossover
Immutable implementation of
OrderCrossover
.
Use the builder to create immutable instances:
ImmutableOrderCrossover.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableOrderCrossover
. -
Constructor Summary
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableOrderCrossover
.static ImmutableOrderCrossover
copyOf
(OrderCrossover instance) Creates an immutable copy of aOrderCrossover
value.boolean
This instance is equal to all instances ofImmutableOrderCrossover
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableOrderCrossover another) int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueOrderCrossover
.Methods inherited from class net.bmahe.genetics4j.core.spec.combination.OrderCrossover
build
-
Constructor Details
-
ImmutableOrderCrossover
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableOrderCrossover
that have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueOrderCrossover
. -
copyOf
Creates an immutable copy of aOrderCrossover
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 OrderCrossover instance
-
builder
Creates a builder forImmutableOrderCrossover
.ImmutableOrderCrossover.builder() .build();
- Returns:
- A new ImmutableOrderCrossover builder
-