Class UserAndTimestamp
java.lang.Object
com.linecorp.centraldogma.server.metadata.UserAndTimestamp
Specifies when an object is accessed by whom.
-
Constructor Summary
ConstructorsConstructorDescriptionUserAndTimestamp
(String user) Creates a new instance using the current time as a timestamp.UserAndTimestamp
(String user, Instant timestamp) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static UserAndTimestamp
Creates a new instance using the specifiedAuthor
's e-mail address as a user name and the current time as a timestamp.Returns a date and time string which is formatted as ISO-8601.long
Returns the epoch milliseconds of thetimestamp()
.toString()
user()
Returns alogin
name who took any action on this object.
-
Constructor Details
-
UserAndTimestamp
Creates a new instance using the current time as a timestamp. -
UserAndTimestamp
Creates a new instance.
-
-
Method Details
-
of
Creates a new instance using the specifiedAuthor
's e-mail address as a user name and the current time as a timestamp. -
user
Returns alogin
name who took any action on this object. -
timestamp
Returns a date and time string which is formatted as ISO-8601. -
timestampMillis
public long timestampMillis()Returns the epoch milliseconds of thetimestamp()
. -
equals
-
hashCode
public int hashCode() -
toString
-