T
- The type of data collected.public abstract class UserFeedback<T,C extends UserFeedbackCategory> extends Persistable
Constructor and Description |
---|
UserFeedback(java.lang.String classType)
Constructor
|
UserFeedback(java.lang.String classType,
java.lang.String uid)
Constructor
|
Modifier and Type | Method and Description |
---|---|
T |
getData()
Returns the provided feedback data.
|
C |
getFeedbackCategory()
Returns the UserFeedbackCategory for this feedback.
|
long |
getTimestamp()
Returns the time the feedback was given.
|
java.lang.String |
getUserID()
Returns the user ID of the individual that provided feedback.
|
void |
setData(T data)
Sets the feedback data
|
void |
setFeedbackCategory(C feedbackCategory)
Sets the UserFeedbackCategory for this feedback.
|
void |
setTimestamp(long timestamp)
Sets the time the feedback was given.
|
void |
setUserID(java.lang.String userID)
Sets the user ID of the individual providing feedback.
|
createKey, createKey, equals, extractType, extractUID, getKey, getShortKey, getShortKey, getType, getUID, getValidatorUtilities, setValidatorUtilities, toString, validate, validateKey
public UserFeedback(java.lang.String classType)
public UserFeedback(java.lang.String classType, java.lang.String uid)
uid
- A unique identifier for this instance.public java.lang.String getUserID()
public void setUserID(java.lang.String userID)
userID
- User's IDpublic C getFeedbackCategory()
UserFeedbackCategory
public void setFeedbackCategory(C feedbackCategory)
feedbackCategory
- Feedback categorypublic T getData()
public void setData(T data)
data
- feedback datapublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
-