public abstract class AbstractTimeService extends ImmutableMoment implements TimeService
| Modifier and Type | Field and Description |
|---|---|
protected double |
now |
milli_to_nano, second_to_nano| Constructor and Description |
|---|
AbstractTimeService() |
| Modifier and Type | Method and Description |
|---|---|
double |
birth()
the epoch in millis when this TimeService was instantiated
|
Moment |
clone(Moment moment)
creates an immutable copy of a moment
|
double |
millis() |
Moment |
now() |
Moment |
nowPlusOne()
Returns a new moment guaranteed to be one nano later than any other method.
|
void |
tick()
updates now() to current time
|
compareTo, equals, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitrunLater, timestampcompareTopublic double birth()
TimeServicebirth in interface TimeServicepublic Moment now()
now in interface TimeServicepublic Moment clone(Moment moment)
TimeServiceclone in interface TimeServicemoment - - The moment to copyImmutableMoment that == momentpublic double millis()
millis in interface Momentmillis in class ImmutableMomentpublic Moment nowPlusOne()
TimeServicenowPlusOne in interface TimeServicepublic void tick()
TimeServicetick in interface TimeServiceCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.