| 1 | package net.bmahe.genetics4j.extras.evolutionlisteners; | |
| 2 | ||
| 3 | import org.immutables.value.Value; | |
| 4 | ||
| 5 | @Value.Immutable | |
| 6 | public interface ColumnExtractor<T extends Comparable<T>, U> { | |
| 7 | ||
| 8 | @Value.Parameter | |
| 9 | String header(); | |
| 10 | ||
| 11 | @Value.Parameter | |
| 12 | ColumnExtractorFunction<T, U> columnExtractorFunction(); | |
| 13 | ||
| 14 | public static class Builder<T extends Comparable<T>, U> extends ImmutableColumnExtractor.Builder<T, U> { | |
| 15 | } | |
| 16 | ||
| 17 | public static <T extends Comparable<T>, U> ColumnExtractor<T, U> of(final String header, | |
| 18 | final ColumnExtractorFunction<T, U> columnExtractorFunction) { | |
| 19 |
2
1. of : replaced return value with null for net/bmahe/genetics4j/extras/evolutionlisteners/ColumnExtractor::of → NO_COVERAGE 2. of : removed call to net/bmahe/genetics4j/extras/evolutionlisteners/ImmutableColumnExtractor::of → NO_COVERAGE |
return ImmutableColumnExtractor.of(header, columnExtractorFunction); |
| 20 | } | |
| 21 | ||
| 22 | } | |
Mutations | ||
| 19 |
1.1 2.2 |