Class ImmutableProgramRandomCombine

java.lang.Object
net.bmahe.genetics4j.gp.spec.combination.ProgramRandomCombine
net.bmahe.genetics4j.gp.spec.combination.ImmutableProgramRandomCombine
All Implemented Interfaces:
CombinationPolicy

@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableProgramRandomCombine extends ProgramRandomCombine
Immutable implementation of ProgramRandomCombine.

Use the builder to create immutable instances: ImmutableProgramRandomCombine.builder().

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableProgramRandomCombine 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, ImmutableProgramRandomCombine 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 ProgramRandomCombine.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableProgramRandomCombine copyOf(ProgramRandomCombine instance)
      Creates an immutable copy of a ProgramRandomCombine 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 ProgramRandomCombine instance
    • builder

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