Class ImmutablePickFirstParent
java.lang.Object
net.bmahe.genetics4j.core.spec.combination.PickFirstParent
net.bmahe.genetics4j.core.spec.combination.ImmutablePickFirstParent
- All Implemented Interfaces:
CombinationPolicy
@Generated(from="PickFirstParent",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutablePickFirstParent
extends PickFirstParent
Immutable implementation of
PickFirstParent.
Use the builder to create immutable instances:
ImmutablePickFirstParent.builder().
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forPickFirstParent.static PickFirstParentcopyOf(PickFirstParent instance) Creates an immutable copy of aPickFirstParentvalue.booleanThis instance is equal to all instances ofImmutablePickFirstParentthat have equal attribute values.private booleanequalsByValue(ImmutablePickFirstParent another) inthashCode()Returns a constant hash code value.toString()Prints the immutable valuePickFirstParent.Methods inherited from class PickFirstParent
build
-
Constructor Details
-
ImmutablePickFirstParent
-
-
Method Details
-
equals
-
equalsByValue
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aPickFirstParentvalue. 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 PickFirstParent instance
-
builder
Creates a builder forPickFirstParent.ImmutablePickFirstParent.builder() .build();
- Returns:
- A new PickFirstParent builder
-