SystemClockBridge
final class SystemClockBridge
Implements: IClockBridge
Package: dev.joid.lib.bridge.clock · Module: core · Source: SystemClockBridge.java
The default clock, which returns the time of the JVM.
Description
Section titled “Description”JOID registers it in BridgeHandler.CLOCK before any backend.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SystemClockBridge() | Creates the clock bridge. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
long | nanoTime() | Returns System.nanoTime(). |
long | currentTimeMillis() | Returns System.currentTimeMillis(). |
Creation details
Section titled “Creation details”SystemClockBridge
Section titled “SystemClockBridge”SystemClockBridge()
Creates the clock bridge.
Method details
Section titled “Method details”nanoTime
Section titled “nanoTime”long nanoTime()
Returns System.nanoTime().
currentTimeMillis
Section titled “currentTimeMillis”long currentTimeMillis()
Returns System.currentTimeMillis().
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
