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