public void add(final D data)
	{
		this.container.add(data);

		// if the size of data is known add the value to the task size
		if (data instanceof ISizeable) {
			this.byteSize += ((ISizeable) data).byteSize();
		}
	}
public void add ( final D data ) { this . container . add ( data ) ; if ( data instanceof ISizeable ) { this . byteSize += ( ( ISizeable ) data ) . byteSize ( ) ; } }
Adds data to this task.

@param data
Reference to the data object.