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().

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableSelectAll that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • equalTo

      private boolean equalTo(int synthetic, ImmutableSelectAll another)
    • hashCode

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SelectAll.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableSelectAll copyOf(SelectAll instance)
      Creates an immutable copy of a SelectAll 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

      public static ImmutableSelectAll.Builder builder()
      Creates a builder for ImmutableSelectAll.
       ImmutableSelectAll.builder()
          .build();
       
      Returns:
      A new ImmutableSelectAll builder