com.atlassian.jira.issue.attachment
Class AttachmentItems

java.lang.Object
  extended by com.atlassian.jira.issue.attachment.AttachmentItems
All Implemented Interfaces:
Iterable<AttachmentItem>

public class AttachmentItems
extends Object
implements Iterable<AttachmentItem>

This class represents an ordered sequence of AttachmentItem's.

Since:
v5.0

Constructor Summary
AttachmentItems(Iterable<AttachmentItem> items)
           
 
Method Summary
 List<Attachment> attachments()
           
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator<AttachmentItem> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentItems

public AttachmentItems(Iterable<AttachmentItem> items)
Method Detail

attachments

public List<Attachment> attachments()
Returns:
a List of Attachment

iterator

public Iterator<AttachmentItem> iterator()
Specified by:
iterator in interface Iterable<AttachmentItem>
Returns:
an iterator for iterating over this AttachmentItem's items

isEmpty

public boolean isEmpty()
Returns:
true if this AttachmentItems does not contain any items

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.