E
- The type of event built.public interface EventBuilder<E extends Event>
RatingBuilder
Modifier and Type | Method and Description |
---|---|
E |
build()
Builds the event.
|
void |
reset()
Clear the rating builder, as if it were freshly instantiated..
|
EventBuilder<E> |
setItemId(long iid)
Set the item ID for this event.
|
EventBuilder<E> |
setTimestamp(long ts)
Set the timestamp for this event.
|
EventBuilder<E> |
setUserId(long uid)
Set the user ID for this event.
|
void reset()
EventBuilder<E> setUserId(long uid)
uid
- The user ID.EventBuilder<E> setItemId(long iid)
iid
- The item ID.EventBuilder<E> setTimestamp(long ts)
ts
- The event timestamp.E build()
IllegalStateException
- if the builder is not ready to build an object (e.g. some
needed setter has not been called).