public class TestUserBuilder
extends java.lang.Object
Builder for test user objects.
TestUser
Constructor and Description |
---|
TestUserBuilder()
Construct a new test user builder.
|
Modifier and Type | Method and Description |
---|---|
TestUserBuilder |
addTestEntity(Entity... events) |
TestUserBuilder |
addTestRating(long iid,
double score) |
TestUserBuilder |
addTrainEntity(Entity... events) |
TestUser |
build() |
TestUserBuilder |
setTestHistory(java.util.List<Entity> test) |
TestUserBuilder |
setTrainHistory(java.util.List<Entity> train) |
TestUserBuilder |
setUserId(long uid) |
public TestUserBuilder setUserId(long uid)
public TestUserBuilder addTestEntity(Entity... events)
public TestUserBuilder addTestRating(long iid, double score)
public TestUserBuilder addTrainEntity(Entity... events)
public TestUserBuilder setTrainHistory(java.util.List<Entity> train)
public TestUserBuilder setTestHistory(java.util.List<Entity> test)
public TestUser build()