public class LikeBuilder extends Object implements EventBuilder<Like>
Like
events.Like
Constructor and Description |
---|
LikeBuilder() |
Modifier and Type | Method and Description |
---|---|
Like |
build()
Builds the event.
|
void |
reset()
Clear the rating builder, as if it were freshly instantiated..
|
LikeBuilder |
setItemId(long iid)
Set the item ID for this event.
|
LikeBuilder |
setTimestamp(long ts)
Set the timestamp for this event.
|
LikeBuilder |
setUserId(long uid)
Set the user ID for this event.
|
public void reset()
EventBuilder
reset
in interface EventBuilder<Like>
public LikeBuilder setUserId(long uid)
EventBuilder
setUserId
in interface EventBuilder<Like>
uid
- The user ID.public LikeBuilder setItemId(long iid)
EventBuilder
setItemId
in interface EventBuilder<Like>
iid
- The item ID.public LikeBuilder setTimestamp(long ts)
EventBuilder
setTimestamp
in interface EventBuilder<Like>
ts
- The event timestamp.public Like build()
EventBuilder
build
in interface EventBuilder<Like>