@Override
	public int compareTo(final EnumGene<A> gene) {
		int result = 0;
		if (_alleleIndex > gene._alleleIndex) {
			result = 1;
		} else if (_alleleIndex < gene._alleleIndex) {
			result = -1;
		}

		return result;
	}
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