Class UserTaskInformation


  • public class UserTaskInformation
    extends java.lang.Object
    This class represents information stored for a task
    • Constructor Summary

      Constructors 
      Constructor Description
      UserTaskInformation​(int nIdHistory, int nIdTask)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String strKey, java.lang.String strValue)
      Adds a piece of information
      java.lang.String get​(java.lang.String strKey)
      Gives the value of the piece of information with the specified key
      int getIdHistory()
      Gives the history id
      int getIdTask()
      Gives the task id
      java.util.Collection<java.lang.String> getKeys()
      Gives all the keys of the pieces of information
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserTaskInformation

        public UserTaskInformation​(int nIdHistory,
                                   int nIdTask)
        Constructor
        Parameters:
        nIdHistory - the history id
        nIdTask - the task id
    • Method Detail

      • getIdHistory

        public int getIdHistory()
        Gives the history id
        Returns:
        The history id
      • getIdTask

        public int getIdTask()
        Gives the task id
        Returns:
        The task id
      • add

        public void add​(java.lang.String strKey,
                        java.lang.String strValue)
        Adds a piece of information
        Parameters:
        strKey - the key of the piece of information
        strValue - the value of the piece of information
      • get

        public java.lang.String get​(java.lang.String strKey)
        Gives the value of the piece of information with the specified key
        Parameters:
        strKey - the key
        Returns:
        the value
      • getKeys

        public java.util.Collection<java.lang.String> getKeys()
        Gives all the keys of the pieces of information
        Returns:
        a collection containing all the keys