VersionUnion.fromRanges constructor

VersionUnion.fromRanges(List<VersionRange> ranges)

Creates a union from a list of ranges with no pre-processing.

It's up to the caller to ensure that the invariants described in ranges are maintained. They are not verified by this constructor. To automatically ensure that they're maintained, use new VersionConstraint.unionOf instead.

Implementation

VersionUnion.fromRanges(this.ranges);