Class AbstractSimpleContainer<T>

    • Field Detail

      • m_Content

        protected T m_Content
        the stored content.
      • m_Report

        protected Report m_Report
        the report.
      • m_Notes

        protected Notes m_Notes
        the notes.
      • m_UUID

        protected long m_UUID
        the unique ID.
    • Constructor Detail

      • AbstractSimpleContainer

        protected AbstractSimpleContainer()
        Initializes the container.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • getUniqueID

        public long getUniqueID()
        Returns the unique ID.
        Specified by:
        getUniqueID in interface UniqueIDHandler
        Returns:
        the ID
      • cloneContent

        protected abstract T cloneContent()
        Returns a clone of the content.
        Returns:
        the clone
      • getHeader

        public AbstractSimpleContainer<T> getHeader()
        Returns a new container with the report and notes copied, but without the content.
        Returns:
        the container without the content
        See Also:
        getClone()
      • setContent

        public void setContent​(T value)
        Sets the content to use.
        Parameters:
        value - the content
      • getContent

        public T getContent()
        Returns the store content.
        Returns:
        the content
      • hasReport

        public boolean hasReport()
        Checks whether a report is present.
        Specified by:
        hasReport in interface ReportHandler<T>
        Returns:
        true if a report is present
      • setNotes

        public void setNotes​(Notes value)
        Sets the notes to use.
        Parameters:
        value - the new notes
      • toString

        public String toString()
        Returns a string representation of the container.
        Overrides:
        toString in class Object
        Returns:
        the string representation