Class ImmutableSelectAll
java.lang.Object
net.bmahe.genetics4j.core.spec.selection.SelectAll
net.bmahe.genetics4j.core.spec.selection.ImmutableSelectAll
- All Implemented Interfaces:
SelectionPolicy
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSelectAll
extends SelectAll
Immutable implementation of
SelectAll
.
Use the builder to create immutable instances:
ImmutableSelectAll.builder()
.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableSelectAll.Builder
builder()
Creates a builder forImmutableSelectAll
.static ImmutableSelectAll
Creates an immutable copy of aSelectAll
value.boolean
This instance is equal to all instances ofImmutableSelectAll
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableSelectAll another) int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueSelectAll
.
-
Constructor Details
-
ImmutableSelectAll
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableSelectAll
that have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueSelectAll
. -
copyOf
Creates an immutable copy of aSelectAll
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 SelectAll instance
-
builder
Creates a builder forImmutableSelectAll
.ImmutableSelectAll.builder() .build();
- Returns:
- A new ImmutableSelectAll builder
-