Package akka.http.impl.util
Class Timestamp
- java.lang.Object
-
- scala.AnyVal
-
- akka.http.impl.util.Timestamp
-
public class Timestamp extends scala.AnyVal
INTERNAL APIHelper for dealing with points in time rather than durations. We mark it private[http] because we don't want to support it as public API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Timestamp.Ordering$
-
Constructor Summary
Constructors Constructor Description Timestamp(long timestampNanos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFinite()
boolean
isFuture()
boolean
isNever()
boolean
isPast()
boolean
isPast(Timestamp now)
static Timestamp
never()
static Timestamp
now()
long
timestampNanos()
-
-
-
Method Detail
-
now
public static Timestamp now()
-
never
public static Timestamp never()
-
timestampNanos
public long timestampNanos()
-
isPast
public boolean isPast()
-
isPast
public boolean isPast(Timestamp now)
-
isFuture
public boolean isFuture()
-
isFinite
public boolean isFinite()
-
isNever
public boolean isNever()
-
-