Interface AttachmentSet

    • Method Detail

      • get

        @Nullable
        Attachment get​(String contentId)
        Gets the attachment by the content ID.
        Parameters:
        contentId - The content ID like "[email protected]", without surrounding '<' and '>' used as the transfer syntax.
        Returns:
        null if no such attachment exist.
      • isEmpty

        boolean isEmpty()
        Returns true if there's no attachment.
      • add

        void add​(Attachment att)
        Adds an attachment to this set.

        Note that it's OK for an Attachment to belong to more than one AttachmentSet (which is in fact necessary when you wrap a Message into another.

        Parameters:
        att - must not be null.