/*
 * 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@gmail.com)
 */
package io.jenetics.ext;

/**
 * Multi objective fitness value.
 *
 * @author <a href="mailto:franz.wilhelmstoetter@gmail.com">Franz Wilhelmstötter</a>
 * @version !__version__!
 * @since !__version__!
 */
public class MOF<T> implements Comparable<MOF<T>> {



	@Override
	public int compareTo(final MOF<T> o) {
		return 0;
	}

}

@@ -763,16 +763,95 @@
 s.ext;%0A%0A
+import static java.util.Objects.requireNonNull;%0A%0Aimport java.util.Comparator;%0A%0A
 /**%0A * M
@@ -1077,16 +1077,17 @@
 %3E%3E %7B%0A%0A%0A%0A
+%0A
 %09@Overri
@@ -1129,16 +1129,16 @@
 T%3E o) %7B%0A
-
 %09%09return
@@ -1145,10 +1145,619 @@
  0;%0A%09%7D%0A%0A
+%09public static %3CT%3E int%0A%09compare(final T%5B%5D a, final T%5B%5D b, final Comparator%3C? super T%3E comparator) %7B%0A%09%09requireNonNull(comparator);%0A%09%09if (a.length != b.length) %7B%0A%09%09%09throw new IllegalArgumentException();%0A%09%09%7D%0A%0A%09%09boolean adom = false;%0A%09%09boolean bdom = false;%0A%0A%09%09for (int i = 0; i %3C a.length; ++i) %7B%0A%09%09%09final int cmp = comparator.compare(a%5Bi%5D, b%5Bi%5D);%0A%0A%09%09%09if (cmp %3E 0) %7B%0A%09%09%09%09adom = true;%0A%09%09%09%09if (bdom) %7B%0A%09%09%09%09%09return 0;%0A%09%09%09%09%7D%0A%09%09%09%7D else if (cmp %3C 0) %7B%0A%09%09%09%09bdom = true;%0A%09%09%09%09if (adom) %7B%0A%09%09%09%09%09return 0;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09if (adom == bdom) %7B%0A%09%09%09return 0;%0A%09%09%7D else if (adom) %7B%0A%09%09%09return 1;%0A%09%09%7D else %7B%0A%09%09%09return -1;%0A%09%09%7D%0A%09%7D%0A%0A
 %7D%0A

Implement pareto comparator.