Package com.io7m.coffeepick.runtime
Interface RuntimeVersionRangeType
- All Known Implementing Classes:
RuntimeVersionRange
@Immutable
public interface RuntimeVersionRangeType
A range of runtime versions.
-
Method Summary
Modifier and Type Method Description default voidcheckPreconditions()Check preconditions for the type.default booleanincludes(RuntimeVersion version)RuntimeVersionlower()booleanlowerExclusive()default java.lang.StringtoExternalString()RuntimeVersionupper()booleanupperExclusive()
-
Method Details
-
lower
- Returns:
- The lower bound of the range
-
lowerExclusive
@Parameter boolean lowerExclusive()- Returns:
trueiff the lower bound is exclusive
-
upper
- Returns:
- The upper bound of the range
-
upperExclusive
@Parameter boolean upperExclusive()- Returns:
trueiff the upper bound is exclusive
-
checkPreconditions
@Check default void checkPreconditions()Check preconditions for the type. -
toExternalString
default java.lang.String toExternalString()- Returns:
- The current range as an external string (such as
[1.2.3,2.0.0)).
-
includes
- Parameters:
version- The runtime version- Returns:
trueif the given version is within the current range
-