@ SafeVarargs public static < A > EnumGene < A > of ( final int alleleIndex , final A ... validAlleles ) { return new EnumGene <> ( alleleIndex , ISeq . of ( validAlleles ) ) ; }
Create a new enum gene from the given valid genes and the chosen allele index .