public abstract class Time extends Object implements Comparable<Time>
| Constructor and Description |
|---|
Time(long timestamp)
Initialize the internal timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Time other) |
boolean |
equals(Object other) |
long |
getTimestamp()
Get timestamp in milliseconds since the beginning of the epoch (01/01/1970).
|
long |
getTimeStamp()
Deprecated.
[REEF-1532] Prefer using getTimestamp() instead.
Remove after release 0.16.
|
int |
hashCode() |
String |
toString() |
public Time(long timestamp)
timestamp - timestamp in milliseconds since the beginning
of the epoch (01/01/1970).public final long getTimestamp()
public final long getTimeStamp()
public int compareTo(Time other)
compareTo in interface Comparable<Time>Copyright © 2017 The Apache Software Foundation. All rights reserved.