File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/org/cicirello/permutations Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2018-2021 Vincent A. Cicirello, <https://www.cicirello.org/>.
2+ * Copyright 2018-2022 Vincent A. Cicirello, <https://www.cicirello.org/>.
33 *
44 * This file is part of JavaPermutationTools (https://jpt.cicirello.org/).
55 *
1717 *
1818 * You should have received a copy of the GNU General Public License
1919 * along with JavaPermutationTools. If not, see <http://www.gnu.org/licenses/>.
20- *
2120 */
2221
2322package org .cicirello .permutations ;
3332 * modify the returned Permutation without risk of interfering with the operation of the Iterator.
3433 *
3534 * @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>, <a href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a>
36- * @version 5.24.2021
3735 */
3836public class PermutationIterator implements Iterator <Permutation > {
3937
@@ -67,15 +65,18 @@ public PermutationIterator(Permutation p) {
6765 }
6866
6967 /**
70- * {@inheritDoc}
68+ * Checks if this PermutationIterator has more Permutations.
69+ * @return true if and only if this PermutationIterator has more Permutations to iterate over.
7170 */
7271 @ Override
7372 public boolean hasNext () {
7473 return !done ;
7574 }
7675
7776 /**
78- * {@inheritDoc}
77+ * Gets the Permutation for the next iteration.
78+ * @return The Permutation for the next iteration.
79+ * @throws NoSuchElementException if hasNext() is false
7980 */
8081 @ Override
8182 public Permutation next () {
You can’t perform that action at this time.
0 commit comments