public class FutureTimepoint
extends util.object.Wrapper<java.time.Duration>
Constructor and Description |
---|
FutureTimepoint(java.time.Duration timeSpanFromNow)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStillInTheFuture()
Is this time point still in the future?
An instance of this class is always instantiated with a future time
point, but the passing of time will eventually make the initial time
point in the past.
|
static FutureTimepoint |
now()
Constructs the minimum value admissible for a
FutureTimepoint
instance which is the current time point. |
public FutureTimepoint(java.time.Duration timeSpanFromNow)
timeSpanFromNow
- an amount of time to add to the current time to
get a time point in the future.java.lang.NullPointerException
- if the argument is null
.java.lang.IllegalArgumentException
- if the argument is a negative duration.public static FutureTimepoint now()
FutureTimepoint
instance which is the current time point.
of FutureTimepoint
.public boolean isStillInTheFuture()
true
for yes, false
for no.