@Override
	public boolean equals(final Object obj) {
		return obj instanceof EnumGene<?> other &&
			_alleleIndex == other._alleleIndex &&
			Objects.equals(_validAlleles, other._validAlleles);
	}
Create a new gene from the given {@code value} and the gene context.

@since 1.6

@param value the value of the new gene
@return a new gene with the given value
jenetics/src/main/java/io/jenetics/EnumGene.java