U - type of the userpublic abstract class UserModel<U> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
UserModel.Model<U>
User model
|
| Constructor and Description |
|---|
UserModel()
Constructor which does not do any caching.
|
UserModel(boolean caching,
Stream<U> users)
Constructor in which it can be specified whether to perform
caching or not and the target users.
|
UserModel(Stream<U> users)
Constructor which lazily caches the models for the specified users.
|
UserModel(UserModel<U> model)
Constructor which lazily caches the models for the same users the model in the parameter does.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract UserModel.Model<U> |
get(U u)
Calculates the user model for user u.
|
UserModel.Model<U> |
getModel(U u)
Returns the user model for user u.
|
void |
initialize()
Start the caching of the users.
|
public UserModel(boolean caching,
Stream<U> users)
caching - specify if user models are to be cachedusers - users whose models are cachedpublic UserModel()
public UserModel(Stream<U> users)
users - set of users for which their results will be cachedpublic void initialize()
protected abstract UserModel.Model<U> get(U u)
u - the userpublic UserModel.Model<U> getModel(U u)
u - the userCopyright © 2016. All rights reserved.