@Override
	public boolean equals(final Object obj) {
		return obj instanceof DoubleGene other &&
			Double.compare(other._allele, _allele) == 0 &&
			Double.compare(other._min, _min) == 0 &&
			Double.compare(other._max, _max) == 0;
	}
Create a new gene from the given {@code value} and the gene context.

@since 5.0
@param allele the value of the new gene.
@return a new gene with the given value.
jenetics/src/main/java/io/jenetics/DoubleGene.java