Package es.uam.eps.ir.relison.content
Class Content<T,C>
java.lang.Object
es.uam.eps.ir.relison.content.Content<T,C>
- Type Parameters:
T- Type of the content identifierC- Type of the content
public class Content<T,C>
extends java.lang.Object
User-created content.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CgetContent()Gets the text representation of the content.TgetContentId()Gets the identifier of the contentlonggetTimestamp()Gets the timestamp of the content.
-
Field Details
-
Constructor Details
-
Content
Constructor.- Parameters:
contentId- the identifiercontent- the text representation of the contenttimestamp- the creation timestamp.
-
-
Method Details
-
getContentId
Gets the identifier of the content- Returns:
- the content identifier.
-
getContent
Gets the text representation of the content.- Returns:
- the text representation of the content.
-
getTimestamp
public long getTimestamp()Gets the timestamp of the content.- Returns:
- the timestamp of the content.
-