Class ImmutableProgramRandomCombine
java.lang.Object
net.bmahe.genetics4j.gp.spec.combination.ProgramRandomCombine
net.bmahe.genetics4j.gp.spec.combination.ImmutableProgramRandomCombine
- All Implemented Interfaces:
CombinationPolicy
@Generated(from="ProgramRandomCombine",
generator="Immutables")
@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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeProgramRandomCombine. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forProgramRandomCombine.static ProgramRandomCombinecopyOf(ProgramRandomCombine instance) Creates an immutable copy of aProgramRandomCombinevalue.booleanThis instance is equal to all instances ofImmutableProgramRandomCombinethat have equal attribute values.private booleaninthashCode()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 ofImmutableProgramRandomCombinethat have equal attribute values. -
equalsByValue
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueProgramRandomCombine. -
copyOf
Creates an immutable copy of aProgramRandomCombinevalue. 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 forProgramRandomCombine.ImmutableProgramRandomCombine.builder() .build();- Returns:
- A new ProgramRandomCombine builder
-