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