java.lang.Object
java.lang.Enum<ComparableVersion.RangeSpecifier>
dev.qilletni.api.lib.qll.ComparableVersion.RangeSpecifier
- All Implemented Interfaces:
Serializable,Comparable<ComparableVersion.RangeSpecifier>,Constable
- Enclosing class:
ComparableVersion
Specifies how a version may be matched with other versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetRangeSpecifierFromString(char specifierChar) abstract booleanpermitsVersion(Version version, Version checkVersion) Checks if#versionComparableVersionwill permit the givenVersionto be used in accordance to the version's range specifier.Returns the enum constant of this class with the specified name.static ComparableVersion.RangeSpecifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CARET
Permits newer minor and match versions, so thexof1.x.x. -
TILDE
Permits newer patch versions, so thexof1.0.x. -
EXACT
Requires the exact version specified.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getRangeSpecifierFromString
public static Optional<ComparableVersion.RangeSpecifier> getRangeSpecifierFromString(char specifierChar) -
permitsVersion
Checks if#versionComparableVersionwill permit the givenVersionto be used in accordance to the version's range specifier.- Parameters:
version- The version to check againstcheckVersion- The version to check matchesversion- Returns:
- If the version may be used to fulfill the
-