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