public abstract class RatingMatrixEntry extends java.lang.Object implements Preference
An entry in a RatingMatrix
. This is like a Rating
, but:
Constructor and Description |
---|
RatingMatrixEntry() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getIndex()
Get the index of this rating in the list of ratings in the matrix.
|
abstract long |
getItemId()
Get the item ID for this rating matrix entry.
|
abstract int |
getItemIndex()
Get the 0-based item index for this rating matrix entry.
|
abstract long |
getUserId()
Get the user ID for this rating matrix entry.
|
abstract int |
getUserIndex()
Get the 0-based user index for this rating matrix entry.
|
abstract double |
getValue()
Get the value of this rating matrix entry.
|
java.lang.String |
toString() |
public abstract long getUserId()
Get the user ID for this rating matrix entry.
getUserId
in interface Preference
public abstract int getUserIndex()
Get the 0-based user index for this rating matrix entry.
RatingMatrix.userIndex()
of the rating matrix from which this entry came.public abstract long getItemId()
Get the item ID for this rating matrix entry.
getItemId
in interface Preference
public abstract int getItemIndex()
Get the 0-based item index for this rating matrix entry.
RatingMatrix.itemIndex()
of the rating matrix from which this entry came.public abstract int getIndex()
Get the index of this rating in the list of ratings in the matrix.
public abstract double getValue()
Get the value of this rating matrix entry.
getValue
in interface Preference
public java.lang.String toString()
toString
in class java.lang.Object