Package com.io7m.coffeepick.runtime

# Interface RuntimeHashType

All Known Implementing Classes:
  `RuntimeHash`

    @Immutable
    public interface RuntimeHashType

A hash value.

- ## Field Summary

  Fields
  Modifier and Type | Field | Description
  --- | --- | ---
  `static java.util.regex.Pattern` | `ALGORITHM_PATTERN` | A pattern that describes a valid algorithm value.
  `static java.util.regex.Pattern` | `HASH_PATTERN` | A pattern that describes a valid hash value.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `java.lang.String` | `algorithm()` |
  `default void` | `checkPreconditions()` | Check preconditions for the type.
  `java.lang.String` | `value()` |

- ## Field Details

  - ### HASH_PATTERN

    static final java.util.regex.Pattern HASH_PATTERN
    A pattern that describes a valid hash value.

  - ### ALGORITHM_PATTERN

    static final java.util.regex.Pattern ALGORITHM_PATTERN
    A pattern that describes a valid algorithm value.

- ## Method Details

  - ### algorithm

    @Parameter java.lang.String algorithm()
    Returns:
      The algorithm name (eg. "SHA-256")

  - ### value

    @Parameter java.lang.String value()
    Returns:
      The hexadecimal, ASCII-encoded hash value

  - ### checkPreconditions

    @Check default void checkPreconditions()
    Check preconditions for the type.