Skip to content

Commit

Permalink
Add support for adding poly list (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 authored Jul 19, 2023
1 parent feb4bc2 commit 596a230
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ public <P extends Poly> PolyList<BasicPoly> add(P poly) {
return this;
}

@Override
public <P extends Poly> PolyList<BasicPoly> add(PolyList<BasicPoly> list) {
this.list.addAll(list.getList());
return this;
}


@Override
public PolyList<BasicPoly> delete(String polyId) {
BasicPoly toDelete = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public interface PolyList<T extends Poly> extends Serializable {

<P extends Poly> PolyList<T> add(P poly);

<P extends Poly> PolyList<T> add(PolyList<T> list);

PolyList<T> delete(String polyId);

boolean hasPoly(String polyId);
Expand Down

0 comments on commit 596a230

Please sign in to comment.