public interface

VersionedAttachmentsList

com.atlassian.jira.bc.issue.attachment.VersionedAttachmentsList
Known Indirect Subclasses

Class Overview

Represents a list of attachments that contains several versions of the same file.

This class is responsible for determining what attachments represent a different version of the same file, and offering clients methods to query version information for attachments.

Summary

Public Methods
List<Attachment> asList()
Returns the underlying list of attachments.
boolean isLatestVersion(Attachment attachment)
Determines whether the specified attachment represents the latest version of the corresponding file.

Public Methods

public List<Attachment> asList ()

Returns the underlying list of attachments.

Returns

public boolean isLatestVersion (Attachment attachment)

Determines whether the specified attachment represents the latest version of the corresponding file.

Parameters
attachment The attachment in play.
Returns
  • true if this is the latest (or only) version of the file in question; otherwise false.