public static <A> Codec<ISeq<A>, AnyGene<A>> ofVector(
		final Supplier<? extends A> supplier,
		final int length
	) {
		return ofVector(supplier, Predicates.TRUE, length);
	}
Return a scala {@link Codec} with the given allele {@link Supplier} and
{@code Chromosome} length. The {@code supplier} is responsible for
creating new random alleles.

@param <A> the allele type
@param supplier the allele-supplier which is used for creating new,
       random alleles
@param length the vector length
@return a new {@code Codec} with the given parameters
@throws NullPointerException if one of the parameters is {@code null}
@throws IllegalArgumentException if the length of the vector is smaller
        than one.
jenetics/src/main/java/io/jenetics/engine/Codecs.java