@SuppressWarnings({"unchecked", "rawtypes"})
	static Object read(final ObjectInput in)
		throws IOException, ClassNotFoundException
	{
		final int length = readInt(in);
		final MSeq chromosomes = MSeq.ofLength(length);
		for (int i = 0; i < length; ++i) {
			chromosomes.set(i, in.readObject());
		}

		return new Genotype(chromosomes.asISeq());
	}
Create a new {@code Genotype} from a given array of {@code chromosomes}.

@since 3.0

@param <G> the gene type
@param chromosomes the {@code Chromosome}s the returned genotype consists
       of
@return a new {@code Genotype} from the given chromosomes
@throws NullPointerException if {@code chromosomes} is {@code null} or
        one of its elements.
@throws IllegalArgumentException if {@code chromosome.length() < 1}
jenetics/src/main/java/io/jenetics/Genotype.java