|
Quilt Loader 1
|
A collection of VersionIntervals, which are part of one range of versions.
More...
Public Member Functions | |
| default boolean | isSatisfiedBy (Version version) |
| VersionRange | combineMatchingBoth (VersionRange other) |
| Collection< VersionConstraint > | convertToConstraints () |
Converts this range into the deprecated VersionConstraint api. | |
| VersionRange | subSet (VersionInterval fromElement, VersionInterval toElement) |
| VersionRange | headSet (VersionInterval toElement) |
| VersionRange | tailSet (VersionInterval fromElement) |
Static Public Member Functions | |
| static VersionRange | ofInterval (VersionInterval interval) |
| static VersionRange | ofIntervals (Collection< VersionInterval > collection) |
| static VersionRange | ofRanges (Collection< VersionRange > collection) |
| static VersionRange | ofExact (Version version) |
| static VersionRange | ofInterval (Version min, boolean minInlcusive, Version max, boolean maxInclusive) |
Public Attributes | |
| VersionRange | NONE = VersionRangeImpl.NONE |
| VersionRange | ANY = VersionRangeImpl.ANY |
A collection of VersionIntervals, which are part of one range of versions.
For example, a range of versions could be 2.0.0 < x < 3.0.0 OR 4.0.0 < x < 5.0.0. For simplicities sake this is always sorted, and never contains overlapping intervals.
| VersionRange org.quiltmc.loader.api.VersionRange.combineMatchingBoth | ( | VersionRange | other | ) |
VersionRange that only matches versions which match both this range and the given range. Implemented in org.quiltmc.loader.impl.metadata.VersionRangeImpl.
| Collection< VersionConstraint > org.quiltmc.loader.api.VersionRange.convertToConstraints | ( | ) |
Converts this range into the deprecated VersionConstraint api.
Implemented in org.quiltmc.loader.impl.metadata.VersionRangeImpl.