public void addAttachment ( Attachment attachment ) { if ( attachments == null || attachments == Collections . < Attachment > emptyList ( ) ) { attachments = new ArrayList < Attachment > ( ) ; } attachments . add ( ( AttachmentImpl ) attachment ) ; }
Adds the specified attachment to our list of Attachments .