public interface TimeProvider
System.currentTimeMillis()
.
This abstraction is done to be able to switch the implementation for time dependent tests.Modifier and Type | Field and Description |
---|---|
static TimeProvider |
DEFAULT
The default time provider that always returns the system time.
|
Modifier and Type | Method and Description |
---|---|
long |
currentIimeMillis()
Gets the current time in milliseconds sind 1970-01-01 UTC.
|
static final TimeProvider DEFAULT
long currentIimeMillis()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.