Interface WallClock


public interface WallClock

Clock used to properly retrieve time-dependent data from the map.

  • Method Summary

    Modifier and Type
    Method
    Description
    static WallClock
    Provides the default WallClock implementation based on the device clock.
    now()
    Gets the current time from the device clock.
  • Method Details

    • now

      @NonNull Date now()

      Gets the current time from the device clock.

      Returns:

      The current time provided by the device clock.

    • getDefault

      @NonNull static WallClock getDefault()

      Provides the default WallClock implementation based on the device clock.

      Returns:

      The default WallClock instance that uses the device clock.