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()
EventBuilderreset in interface EventBuilder<LikeBatch>public LikeBatchBuilder setUserId(long uid)
EventBuildersetUserId in interface EventBuilder<LikeBatch>uid - The user ID.public LikeBatchBuilder setItemId(long iid)
EventBuildersetItemId 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)
EventBuildersetTimestamp in interface EventBuilder<LikeBatch>ts - The event timestamp.public LikeBatch build()
EventBuilderbuild in interface EventBuilder<LikeBatch>