/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ Franz Wilhelmstötter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 */
package org.jenetix;

import java.math.BigDecimal;

import org.jenetics.NumericGene;
import org.jenetics.util.Mean;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @since !__version__!
 * @version !__version__! &mdash; <em>$Date: 2014-07-16 $</em>
 */
public final class BigDecimalGene implements
	NumericGene<BigDecimal, BigDecimalGene>,
	Mean<BigDecimalGene>
{
	private static final long serialVersionUID = 1L;

	@Override
	public BigDecimal getAllele() {
		return null;
	}

	@Override
	public BigDecimal getMin() {
		return null;
	}

	@Override
	public BigDecimal getMax() {
		return null;
	}

	@Override
	public boolean isValid() {
		return false;
	}

	@Override
	public BigDecimalGene mean(BigDecimalGene that) {
		return null;
	}

	@Override
	public BigDecimalGene newInstance(Number number) {
		return null;
	}

	@Override
	public BigDecimalGene newInstance(BigDecimal value) {
		return null;
	}

	@Override
	public int compareTo(BigDecimalGene o) {
		return 0;
	}

	@Override
	public BigDecimalGene newInstance() {
		return null;
	}

}

@@ -756,16 +756,65 @@
 netix;%0A%0A
+import static java.util.Objects.requireNonNull;%0A%0A
 import j
@@ -1244,64 +1244,301 @@
 ;%0A%0A%09
-@Override%0A%09public BigDecimal getAllele() %7B%0A%09%09return null
+private final BigDecimal _value;%0A%09private final BigDecimal _min;%0A%09private final BigDecimal _max;%0A%0A%09private BigDecimalGene(%0A%09%09final BigDecimal value,%0A%09%09final BigDecimal min,%0A%09%09final BigDecimal max%0A%09) %7B%0A%09%09_value = requireNonNull(value);%0A%09%09_min = requireNonNull(min);%0A%09%09_max = requireNonNull(max)
 ;%0A%09%7D
@@ -1576,11 +1576,14 @@
  get
-Min
+Allele
 () %7B
@@ -1584,36 +1584,38 @@
 le() %7B%0A%09%09return 
-null
+_value
 ;%0A%09%7D%0A%0A%09@Override
@@ -1638,18 +1638,18 @@
 mal getM
-ax
+in
 () %7B%0A%09%09r
@@ -1646,36 +1646,36 @@
 in() %7B%0A%09%09return 
-null
+_min
 ;%0A%09%7D%0A%0A%09@Override
@@ -1687,23 +1687,25 @@
 lic 
-boolean isValid
+BigDecimal getMax
 () %7B
@@ -1718,13 +1718,12 @@
 urn 
-false
+_max
 ;%0A%09%7D
@@ -1763,16 +1763,22 @@
 ne mean(
+final 
 BigDecim
@@ -1857,16 +1857,22 @@
 nstance(
+final 
 Number n
@@ -1945,16 +1945,22 @@
 nstance(
+final 
 BigDecim
@@ -1994,77 +1994,8 @@
 %09%7D%0A%0A
-%09@Override%0A%09public int compareTo(BigDecimalGene o) %7B%0A%09%09return 0;%0A%09%7D%0A%0A
 %09@Ov

Add BigDecimalGene class.