com.vaadin.collaborationengine.
Class CollaborationMessage
All Implemented Interfaces:
Message of a CollaborationMessageList
.
Since:
3.1
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new message.
CollaborationMessage
(UserInfo user, String text, Instant time) Creates a new message with the specified
user
as the message author info,text
as the message content andtime
as the message timestamp. -
Method Summary
-
Constructor Details
-
CollaborationMessage
public CollaborationMessage()Creates a new message.
-
CollaborationMessage
Creates a new message with the specified
user
as the message author info,text
as the message content andtime
as the message timestamp.Parameters:
user
- the user-info of the message authortext
- the content of the messagetime
- the timestamp of the message
-
-
Method Details
-
getUser
Gets the message author user-info.
Returns:
the user-info
-
setUser
Sets the message author user-info.
Parameters:
user
- the user-info -
getText
Gets the message content.
Returns:
the message content
-
setText
Sets the message content.
Parameters:
text
- the message content -
getTime
Gets the message timestamp.
Returns:
the message timestamp
-
setTime
Sets the message timestamp.
Parameters:
time
- the message timestamp -
equals
-
hashCode
public int hashCode()
-