Instant Class
An instance of Instant is an abstraction of a point in time. It is composed of an ID and a unix timestamp. The timestamp is the first parameter considered during a sort of a set of instants. In case of equal timestamps, the ID order is decisive.
Item Index
Methods
Methods
getDate
()
String
Returns a human-readable string representing the timestamp of this instant.
Returns:
String:
A human-readable string representing the timestamp of this instant
getTimestamp
()
Integer
Returns the timestamp of this instant.
Returns:
Integer:
The timestamp of this instant
toString
()
String
Returns a string representing this object.
Returns:
String:
A string representing this object
validate
(
Array
-
A
The validation method of this object. This method is used to check the initialization parameters.
Parameters:
-
A
Mapmap of parameters
Returns:
Array:
An array of {String} errors