public abstract class ActivityEvent extends Object implements Serializable
Constructor and Description |
---|
ActivityEvent()
Constructs an ActivityEvent, timestamped with the current clock time.
|
ActivityEvent(long _timestamp)
Constructs an ActivityEvent.
|
Modifier and Type | Method and Description |
---|---|
String |
description(BundleFormatter _bun)
Returns a string description of this event.
|
String |
lapseToString(BundleFormatter bun)
Returns a human-readable description of the approximate time lapsed since the
event occured, per lapseToString(time0,time1,bun).
|
static String |
lapseToString(long time0,
long time1,
BundleFormatter bun)
Returns a human-readable description of the approximate difference between time0
and time1.
|
long |
timestamp()
The time at which the event occured, in milliseconds since the Epoch.
|
public ActivityEvent()
timestamp()
public ActivityEvent(long _timestamp)
timestamp()
public String description(BundleFormatter _bun)
description
method
for class ActivityEvent simply returns toString().public final String lapseToString(BundleFormatter bun)
public static String lapseToString(long time0, long time1, BundleFormatter bun)
public final long timestamp()
System.currentTimeMillis()