MultiPointCrossover.java

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 2 1. of : replaced return value with null for net/bmahe/genetics4j/core/spec/combination/MultiPointCrossover::of → NO_COVERAGE
2. of : removed call to net/bmahe/genetics4j/core/spec/combination/ImmutableMultiPointCrossover::of → NO_COVERAGE
		return ImmutableMultiPointCrossover.of(numCrossovers);
19
	}
20
}

Mutations

18

1.1
Location : of
Killed by : none
replaced return value with null for net/bmahe/genetics4j/core/spec/combination/MultiPointCrossover::of → NO_COVERAGE

2.2
Location : of
Killed by : none
removed call to net/bmahe/genetics4j/core/spec/combination/ImmutableMultiPointCrossover::of → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.6