Skip to content

Commit 79a659f

Browse files
committed
added missing javadocs
1 parent c1f7a13 commit 79a659f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/org/cicirello/permutations/PermutationIterator.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*
@@ -17,7 +17,6 @@
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

2322
package org.cicirello.permutations;
@@ -33,7 +32,6 @@
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
*/
3836
public 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() {

0 commit comments

Comments
 (0)