Class ImmutableRouletteWheel
java.lang.Object
net.bmahe.genetics4j.core.spec.selection.RouletteWheel
net.bmahe.genetics4j.core.spec.selection.ImmutableRouletteWheel
- All Implemented Interfaces:
SelectionPolicy
@Generated(from="RouletteWheel",
generator="Immutables")
@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 Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forRouletteWheel.static RouletteWheelcopyOf(RouletteWheel instance) Creates an immutable copy of aRouletteWheelvalue.booleanThis instance is equal to all instances ofImmutableRouletteWheelthat have equal attribute values.private booleanequalsByValue(ImmutableRouletteWheel another) inthashCode()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 ofImmutableRouletteWheelthat have equal attribute values. -
equalsByValue
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueRouletteWheel. -
copyOf
Creates an immutable copy of aRouletteWheelvalue. 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 forRouletteWheel.ImmutableRouletteWheel.builder() .build();- Returns:
- A new RouletteWheel builder
-