Contents
Class SemverRange
java.lang.Object
com.hypixel.hytale.common.semver.SemverRange
- All Implemented Interfaces:
SemverSatisfies
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SemverRangeBuilds a range satisfied only by exactly the given version, equivalent to the"=x.y.z"form but constructed straight from theSemver-- notoString()round-trip, and no risk of tripping the bare-version parser (a bare"0.8.6"is rejected as a range, since bare forms are only valid when the patch is zero).static SemverRangefromString(String str) static SemverRangefromString(String str, boolean strict) booleantoString()
-
Field Details
-
CODEC
-
WILDCARD
-
-
Constructor Details
-
SemverRange
-
-
Method Details
-
satisfies
- Specified by:
satisfiesin interfaceSemverSatisfies
-
toString
-
fromString
-
exact
Builds a range satisfied only by exactly the given version, equivalent to the"=x.y.z"form but constructed straight from theSemver-- notoString()round-trip, and no risk of tripping the bare-version parser (a bare"0.8.6"is rejected as a range, since bare forms are only valid when the patch is zero).- Parameters:
version- the version to match exactly- Returns:
- a range that
version, and onlyversion, satisfies
-
fromString
-