Interface ClockFactory

All Known Implementing Classes:
ClockFactoryImpl, MockClockFactory

public interface ClockFactory
Factory to create a Clock.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Clock<T>
    createClock(Function<Long,T> translator)
    Creates a Clock.
  • Method Details

    • createClock

      <T> Clock<T> createClock(Function<Long,T> translator)
      Creates a Clock.
      Type Parameters:
      T - Type of time.
      Parameters:
      translator - Translate the seconds since Epoch to Clock time.
      Returns:
      Clock.