public class LazyAttachmentCollection extends java.lang.Object implements java.util.Collection<Attachment>
Constructor and Description |
---|
LazyAttachmentCollection(AttachmentDeserializer deserializer) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Attachment arg0) |
boolean |
addAll(java.util.Collection<? extends Attachment> arg0) |
void |
clear() |
boolean |
contains(java.lang.Object arg0) |
boolean |
containsAll(java.util.Collection<?> arg0) |
java.util.Map<java.lang.String,javax.activation.DataHandler> |
createDataHandlerMap() |
java.util.List<Attachment> |
getLoadedAttachments() |
boolean |
hasNext() |
boolean |
hasNext(boolean shouldLoadNew)
Check for more attachments by attempting to deserialize the next attachment.
|
boolean |
isEmpty() |
java.util.Iterator<Attachment> |
iterator() |
boolean |
remove(java.lang.Object arg0) |
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LazyAttachmentCollection(AttachmentDeserializer deserializer)
public java.util.List<Attachment> getLoadedAttachments()
public boolean hasNext(boolean shouldLoadNew) throws java.io.IOException
shouldLoadNew
- if false, the "loaded attachments" List will not be changed.java.io.IOException
public boolean hasNext() throws java.io.IOException
java.io.IOException
public java.util.Iterator<Attachment> iterator()
iterator
in interface java.lang.Iterable<Attachment>
iterator
in interface java.util.Collection<Attachment>
public int size()
size
in interface java.util.Collection<Attachment>
public boolean add(Attachment arg0)
add
in interface java.util.Collection<Attachment>
public boolean addAll(java.util.Collection<? extends Attachment> arg0)
addAll
in interface java.util.Collection<Attachment>
public void clear()
clear
in interface java.util.Collection<Attachment>
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<Attachment>
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<Attachment>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<Attachment>
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<Attachment>
public boolean removeAll(java.util.Collection<?> arg0)
removeAll
in interface java.util.Collection<Attachment>
public boolean retainAll(java.util.Collection<?> arg0)
retainAll
in interface java.util.Collection<Attachment>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<Attachment>
public <T> T[] toArray(T[] arg0)
toArray
in interface java.util.Collection<Attachment>
public java.util.Map<java.lang.String,javax.activation.DataHandler> createDataHandlerMap()