/*
 * 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.jenetics.internal.util;

import java.io.Serializable;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @since 3.0
 * @version 3.0 &mdash; <em>$Date: 2014-05-10 $</em>
 */
public class IntRef implements Serializable {
	private static final long serialVersionUID = 1;

	public int value;

	public IntRef(final int initialValue) {
		value = initialValue;
	}

	public IntRef() {
		this(0);
	}

}

@@ -805,16 +805,91 @@
 e;%0A%0A/**%0A
+ * Int reference class, which allows the usage in an lambda expression.%0A *%0A
  * @auth
@@ -1040,16 +1040,22 @@
 %0Apublic 
+final 
 class In
@@ -1140,123 +1140,671 @@
 ;%0A%0A%09
-public int value;%0A%0A%09public IntRef(final int initialValue) %7B%0A%09%09value = initialValue;%0A%09%7D%0A%0A%09public IntRef() %7B%0A%09%09this(0
+/**%0A%09 * The actual int value.%0A%09 */%0A%09public int value;%0A%0A%09/**%0A%09 * Create a new %7B@code IntRef%7D object with the given initial value.%0A%09 *%0A%09 * @param initialValue the initial int value of the reference.%0A%09 */%0A%09public IntRef(final int initialValue) %7B%0A%09%09value = initialValue;%0A%09%7D%0A%0A%09/**%0A%09 * Create a new %7B@code IntRef%7D object initialized with zero.%0A%09 */%0A%09public IntRef() %7B%0A%09%09this(0);%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09return Integer.hashCode(value);%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(final Object obj) %7B%0A%09%09return obj == this %7C%7C%0A%09%09%09(obj instanceof IntRef && value == ((IntRef)obj).value);%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return Integer.toString(value
 );%0A%09

Complete 'IntRef' implementation.