Class Content<T,​C>

java.lang.Object
es.uam.eps.ir.relison.content.Content<T,​C>
Type Parameters:
T - Type of the content identifier
C - Type of the content

public class Content<T,​C>
extends java.lang.Object
User-created content.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private C content
    Content text.
    private T contentId
    Content identifier
    private long timestamp
    Content timestamp
  • Constructor Summary

    Constructors 
    Constructor Description
    Content​(T contentId, C content, long timestamp)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    C getContent()
    Gets the text representation of the content.
    T getContentId()
    Gets the identifier of the content
    long getTimestamp()
    Gets the timestamp of the content.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • contentId

      private final T contentId
      Content identifier
    • content

      private final C content
      Content text.
    • timestamp

      private final long timestamp
      Content timestamp
  • Constructor Details

    • Content

      public Content​(T contentId, C content, long timestamp)
      Constructor.
      Parameters:
      contentId - the identifier
      content - the text representation of the content
      timestamp - the creation timestamp.
  • Method Details

    • getContentId

      public T getContentId()
      Gets the identifier of the content
      Returns:
      the content identifier.
    • getContent

      public C 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.