Quilt Loader 1
Loading...
Searching...
No Matches
org.quiltmc.loader.api.VersionRange Interface Reference

A collection of VersionIntervals, which are part of one range of versions. More...

Inheritance diagram for org.quiltmc.loader.api.VersionRange:
org.quiltmc.loader.impl.metadata.VersionRangeImpl

Public Member Functions

default boolean isSatisfiedBy (Version version)
VersionRange combineMatchingBoth (VersionRange other)
Collection< VersionConstraintconvertToConstraints ()
 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

Detailed Description

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.

Member Function Documentation

◆ combineMatchingBoth()

VersionRange org.quiltmc.loader.api.VersionRange.combineMatchingBoth ( VersionRange other)
Returns
A VersionRange that only matches versions which match both this range and the given range.

Implemented in org.quiltmc.loader.impl.metadata.VersionRangeImpl.

◆ convertToConstraints()

Collection< VersionConstraint > org.quiltmc.loader.api.VersionRange.convertToConstraints ( )

Converts this range into the deprecated VersionConstraint api.

Implemented in org.quiltmc.loader.impl.metadata.VersionRangeImpl.


The documentation for this interface was generated from the following file:
  • src/main/java/org/quiltmc/loader/api/VersionRange.java