| Constructor and Description |
|---|
WallClockTimestamp() |
WallClockTimestamp(long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Timestamp o) |
boolean |
equals(java.lang.Object obj) |
static WallClockTimestamp |
from(long unixTimestamp)
Returns a new wall clock timestamp for the given unix timestamp.
|
int |
hashCode() |
java.lang.String |
toString() |
long |
unixTimestamp()
Returns the unixTimestamp.
|
isNewerThan, isOlderThanpublic WallClockTimestamp()
public WallClockTimestamp(long timestamp)
public static WallClockTimestamp from(long unixTimestamp)
unixTimestamp - the unix timestamp for which to create a new wall clock timestamppublic int compareTo(Timestamp o)
compareTo in interface java.lang.Comparable<Timestamp>public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString in class java.lang.Objectpublic long unixTimestamp()
Copyright © 2013-2019. All Rights Reserved.