public class FileNameBasedVersionedAttachmentsList extends Object implements VersionedAttachmentsList
It stores this 'version' information when constructed by building up a
Map with keys for every
distinct file name in the underlying
List of attachments. Then, each key's value is a
TreeSet of attachments which have that filename.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the underlying list of attachments.
Determines whether the specified attachment is the latest file uploaded amongst the group of files with the same name in the underlying list.
public List<Attachment> asList()
public boolean isLatestVersion(Attachment attachment)
Copyright © 2002-2017 Atlassian. All Rights Reserved.