Class ImmutablePickFirstParent
java.lang.Object
net.bmahe.genetics4j.core.spec.combination.PickFirstParent
net.bmahe.genetics4j.core.spec.combination.ImmutablePickFirstParent
- All Implemented Interfaces:
CombinationPolicy
@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
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePickFirstParent
. -
Constructor Summary
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePickFirstParent
.static ImmutablePickFirstParent
copyOf
(PickFirstParent instance) Creates an immutable copy of aPickFirstParent
value.boolean
This instance is equal to all instances ofImmutablePickFirstParent
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutablePickFirstParent another) int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valuePickFirstParent
.
-
Constructor Details
-
ImmutablePickFirstParent
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutablePickFirstParent
that have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valuePickFirstParent
. -
copyOf
Creates an immutable copy of aPickFirstParent
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 PickFirstParent instance
-
builder
Creates a builder forImmutablePickFirstParent
.ImmutablePickFirstParent.builder() .build();
- Returns:
- A new ImmutablePickFirstParent builder
-