@ InterfaceAudience . Public public List < Attachment > getAttachments ( ) { Map < String , Object > attachmentMetadata = getAttachmentMetadata ( ) ; if ( attachmentMetadata == null ) { return new ArrayList < Attachment > ( ) ; } List < Attachment > result = new ArrayList < Attachment > ( attachmentMetadata . size ( ) ) ; for ( Map . Entry < String , Object > entry : attachmentMetadata . entrySet ( ) ) { Attachment attachment = toAttachment ( entry . getKey ( ) , entry . getValue ( ) ) ; if ( attachment != null ) { result . add ( attachment ) ; } } return result ; }
All attachments as Attachment objects .