Package org.vrspace.server.dto
Class VREvent
java.lang.Object
org.vrspace.server.dto.VREvent
- Direct Known Subclasses:
ClientRequest
An event that happened to an object. Event can change one or more properties
of an object, and can be generated internally. It's typically received from a
client, and represents changes to clients own properties, e.g. position.
- Author:
- joe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Changes to the object.getId()
ID (class name + id ) suitable for serialization.Event timestamp in UTCint
hashCode()
boolean
isOwner()
void
setChanges
(Map<String, Object> changes) Changes to the object.void
setClassName
(String className) void
void
void
ID (class name + id ) suitable for serialization.void
setOwnership
(Ownership ownership) void
setPayload
(String payload) void
void
setTimestamp
(LocalDateTime timestamp) Event timestamp in UTCboolean
toString()
-
Constructor Details
-
VREvent
-
VREvent
-
VREvent
public VREvent()
-
-
Method Details
-
addChange
-
getSourceClassName
-
getSourceId
-
getSourceID
-
sourceIs
-
isOwner
public boolean isOwner() -
getObject
ID (class name + id ) suitable for serialization. -
getChanges
Changes to the object. Multiple changes to same property are going to be 'collapsed', i.e. last value of a field overrides any previous values. -
getTimestamp
Event timestamp in UTC -
getClassName
-
getId
-
getSource
-
getClient
-
getPayload
-
getOwnership
-
setObject
ID (class name + id ) suitable for serialization. -
setChanges
Changes to the object. Multiple changes to same property are going to be 'collapsed', i.e. last value of a field overrides any previous values. -
setTimestamp
Event timestamp in UTC -
setClassName
-
setId
-
setSource
-
setClient
-
setPayload
-
setOwnership
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-