Class ImmutableSelectAll
java.lang.Object
net.bmahe.genetics4j.core.spec.selection.SelectAll
net.bmahe.genetics4j.core.spec.selection.ImmutableSelectAll
- All Implemented Interfaces:
SelectionPolicy
@Generated(from="SelectAll",
generator="Immutables")
@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.Builderbuilder()Creates a builder forSelectAll.static SelectAllCreates an immutable copy of aSelectAllvalue.booleanThis instance is equal to all instances ofImmutableSelectAllthat have equal attribute values.private booleanequalsByValue(ImmutableSelectAll another) inthashCode()Returns a constant hash code value.toString()Prints the immutable valueSelectAll.
-
Constructor Details
-
ImmutableSelectAll
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableSelectAllthat have equal attribute values. -
equalsByValue
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueSelectAll. -
copyOf
Creates an immutable copy of aSelectAllvalue. 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 forSelectAll.ImmutableSelectAll.builder() .build();- Returns:
- A new SelectAll builder
-