View Javadoc
1   package net.bmahe.genetics4j.core.spec.combination;
2   
3   import org.immutables.value.Value;
4   
5   @Value.Immutable
6   public abstract class MultiPointCrossover implements CombinationPolicy {
7   
8   	@Value.Parameter
9   	public abstract int numCrossovers();
10  
11  	/**
12  	 * Construct a new immutable {@code MultiPointCrossover} instance.
13  	 *
14  	 * @param numCrossovers The value for the {@code numCrossovers} attribute
15  	 * @return An immutable MultiPointCrossover instance
16  	 */
17  	public static MultiPointCrossover of(final int numCrossovers) {
18  		return ImmutableMultiPointCrossover.of(numCrossovers);
19  	}
20  }