Class TaskProperties

    • Field Detail

      • m_properties

        protected Map m_properties
        The map that stores the properties.
    • Constructor Detail

      • TaskProperties

        public TaskProperties()
        Constructs a TaskProperties.
    • Method Detail

      • get

        public <V extends Serializable> V get​(String sKey)
        Description copied from interface: Task.Properties
        Get the property of a given key.
        Specified by:
        get in interface Task.Properties
        Type Parameters:
        V - the value type of the property
        Parameters:
        sKey - the key of the property
        Returns:
        the value of the property
      • put

        public <V extends Serializable> V put​(String sKey,
                                              V value)
        Description copied from interface: Task.Properties
        Put a property with the given name and value.
        Specified by:
        put in interface Task.Properties
        Type Parameters:
        V - the value type of the property
        Parameters:
        sKey - the key of the property
        value - the value of the property
        Returns:
        the previous value of the property or null if it's a new property
      • getProperties

        public Map getProperties()
        Returns the current properties.
        Returns:
        the current properties