Interface RoundedInstant


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

      • 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