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 TypeMethodDescriptiongetNow()
The specific, current timeThe rounded time useful as an incremental cache key fragmentgetRounded
(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
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
-