Skip to content

Commit

Permalink
VectorSet: simplify the interface slightly (API change)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 12, 2024
1 parent 9807521 commit 888fc57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions HeartLibrary/src/main/java/jme3utilities/math/VectorSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2023 Stephen Gold
Copyright (c) 2019-2024 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -61,7 +61,7 @@ public interface VectorSet {
*
* @param vectors the values to add (not null, unaffected)
*/
void addAll(Iterable<? extends Vector3f> vectors); // TODO Vector3f is final
void addAll(Iterable<Vector3f> vectors);

/**
* Reset this set to its initial (empty) state without altering its
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2023 Stephen Gold
Copyright (c) 2019-2024 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -181,7 +181,7 @@ public void add(Vector3f vector) {
* @param vectors the values to add (not null, unaffected)
*/
@Override
public void addAll(Iterable<? extends Vector3f> vectors) {
public void addAll(Iterable<Vector3f> vectors) {
for (Vector3f vector : vectors) {
add(vector.x, vector.y, vector.z);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2023 Stephen Gold
Copyright (c) 2019-2024 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -108,7 +108,7 @@ public void add(Vector3f vector) {
* @param vectors the values to add (not null, unaffected)
*/
@Override
public void addAll(Iterable<? extends Vector3f> vectors) {
public void addAll(Iterable<Vector3f> vectors) {
for (Vector3f vector : vectors) {
set.add(vector.clone());
}
Expand Down

0 comments on commit 888fc57

Please sign in to comment.