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