Default Clock implementation. @since 0.7.0
| 25 | * @since 0.7.0 |
| 26 | */ |
| 27 | public class DefaultClock implements Clock { |
| 28 | |
| 29 | /** |
| 30 | * Default static instance that may be shared. It is thread-safe. |
| 31 | */ |
| 32 | public static final Clock INSTANCE = new DefaultClock(); |
| 33 | |
| 34 | /** |
| 35 | * Simply returns <code>new {@link Date}()</code>. |
| 36 | * |
| 37 | * @return a new {@link Date} instance. |
| 38 | */ |
| 39 | @Override |
| 40 | public Date now() { |
| 41 | return new Date(); |
| 42 | } |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…