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 void` | `checkPreconditions()` | Check preconditions for the type.
  `default boolean` | `includes​(RuntimeVersion version)` |
  `RuntimeVersion` | `lower()` |
  `boolean` | `lowerExclusive()` |
  `default java.lang.String` | `toExternalString()` |
  `RuntimeVersion` | `upper()` |
  `boolean` | `upperExclusive()` |

- ## Method Details

  - ### lower

    @Parameter RuntimeVersion lower()
    Returns:
      The lower bound of the range

  - ### lowerExclusive

    @Parameter boolean lowerExclusive()
    Returns:
      `true` iff the lower bound is exclusive

  - ### upper

    @Parameter RuntimeVersion upper()
    Returns:
      The upper bound of the range

  - ### upperExclusive

    @Parameter boolean upperExclusive()
    Returns:
      `true` iff 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:
      `true` if the given version is within the current range