/** * Calculate the intersection of one or more {@link VersionRange} instances, returning a single {@link VersionRange} * as the result. */ public static VersionRange intersection(VersionRange... ranges) { Assert.notNull(ranges, "Version ranges must not be null."); Assert.isTrue(ranges.length >= 1, "Version ranges must not be empty."); return intersection(Arrays.asList(ranges)); }