Interface TimeSource

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TimeSource
The time every generator reads (03-core-model.md ยง3); tests inject a controllable one.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TimeSource
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The current time.
  • Field Details

  • Method Details

    • currentMillis

      long currentMillis()
      The current time.
      Returns:
      milliseconds since the Unix epoch