/*
 * 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.incubator.grammar;

/**
 * Interface for selecting a symbol index.
 *
 * @author <a href="mailto:franz.wilhelmstoetter@gmail.com">Franz Wilhelmstötter</a>
 * @since !__version__!
 * @version !__version__!
 */
@FunctionalInterface
public interface SymbolIndex {

	/**
	 * Selects an index with the given upper {@code bound}, exclusively.
	 *
	 * @param bound the upper bound of the symbol index, exclusively
	 * @return the next symbol index
	 */
	int next(final int bound);

}

@@ -1198,16 +1198,112 @@
 l index%0A
+%09 * @throws IllegalArgumentException if the given %7B@code bound%7D is smaller%0A%09 *         than one%0A
 %09 */%0A%09in

Add Javadoc.