Skip to content

Commit 24c307b

Browse files
committed
minor edit to Copyable interface
1 parent 37f890f commit 24c307b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/jpt2.jar

45 Bytes
Binary file not shown.

src/org/cicirello/permutations/Permutation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @version 9.23.2019
4242
* @since 1.0
4343
*/
44-
public final class Permutation implements Serializable, Iterable<Permutation>, Copyable {
44+
public final class Permutation implements Serializable, Iterable<Permutation>, Copyable<Permutation> {
4545

4646
private static final long serialVersionUID = 1L;
4747

src/org/cicirello/util/Copyable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
*
3030
* @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>,
3131
* <a href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a>
32-
* @version 9.23.2019
32+
* @version 9.25.2019
3333
*/
34-
public interface Copyable {
34+
public interface Copyable<T extends Copyable> {
3535

3636
/**
3737
* Creates an identical copy of this object.
3838
* @return an identical copy of this object.
3939
*/
40-
Copyable copy();
40+
T copy();
4141
}

0 commit comments

Comments
 (0)