public static CharacterGene of(
		final char allele,
		final CharSeq validCharacters
	) {
		return new CharacterGene(allele, validCharacters);
	}
Create a new CharacterGene from the give character.

@param allele The allele.
@param validCharacters the valid characters for the new gene
@return a new {@code CharacterGene} with the given parameter
@throws NullPointerException if one of the arguments is {@code null}.
@throws IllegalArgumentException if the {@code validCharacters} are empty.
jenetics/src/main/java/io/jenetics/CharacterGene.java