Interface RoundedInstant


public interface RoundedInstant
Inform of the current, specific time and a rounded time useful as an incremental cache key fragment.
  • Method Summary

    Modifier and Type
    Method
    Description
    The specific, current time
    The rounded time useful as an incremental cache key fragment
    getRounded(Duration increment)
    The rounded time useful as an incremental cache key fragment
  • Method Details

    • getNow

      Instant getNow()
      The specific, current time
      Returns:
      The specific, current time
    • getRounded

      Instant getRounded()
      The rounded time useful as an incremental cache key fragment
      Returns:
      The rounded time useful as an incremental cache key fragment
    • getRounded

      Instant getRounded(Duration increment)
      The rounded time useful as an incremental cache key fragment
      Parameters:
      increment - the increment to use for rounding
      Returns:
      The rounded time useful as an incremental cache key fragment