public class RatingContext extends java.lang.Object implements java.lang.Comparable<RatingContext>
Constructor and Description |
---|
RatingContext(int user,
int item,
long timestamp)
Create a new object with the given rating time stamp, user index
and item index.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RatingContext o) |
int |
getItem()
Get the item index of the context.
|
int |
getUser()
Get the user index of the context.
|
public RatingContext(int user, int item, long timestamp)
user
- user indexitem
- item indextimestamp
- rating time stamppublic int compareTo(RatingContext o)
compareTo
in interface java.lang.Comparable<RatingContext>
public int getUser()
public int getItem()
Copyright © 2017. All Rights Reserved.