Package com.io7m.coffeepick.runtime
Interface RuntimeVersionRangeType
-
- All Known Implementing Classes:
RuntimeVersionRange
@Immutable public interface RuntimeVersionRangeTypeA range of runtime versions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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 Detail
-
lower
@Parameter RuntimeVersion lower()
- Returns:
- The lower bound of the range
-
lowerExclusive
@Parameter boolean lowerExclusive()
- Returns:
trueiff the lower bound is exclusive
-
upper
@Parameter RuntimeVersion 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
default boolean includes(RuntimeVersion version)
- Parameters:
version- The runtime version- Returns:
trueif the given version is within the current range
-
-