RegionIntersection requires List constructor

This commit is contained in:
dordsor21 2021-10-23 14:09:01 +01:00
parent ae949d607b
commit 3d70d9e496
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -57,6 +57,17 @@ public class RegionIntersection extends AbstractRegion {
*
* @param regions a list of regions, which is copied
*/
public RegionIntersection(List<Region> regions) {
this(null, regions);
}
/**
* Create a new instance with the included list of regions.
*
* @param regions a list of regions, which is copied
* @deprecated Use {@link #RegionIntersection(List)} to match upstream
*/
@Deprecated(forRemoval = true)
public RegionIntersection(Collection<Region> regions) {
this(null, regions);
}