public Phenotype<G, C> withGeneration(final long generation) {
		return Phenotype.of(
			_genotype,
			generation,
			_fitness
		);
	}
Return a new {@code Phenotype} object with the given generation.

@since 5.0

@param generation the generation of the newly created phenotype
@return a new phenotype with the given generation
jenetics/src/main/java/io/jenetics/Phenotype.java