com.moyosoft.exchange.item
Interface ItemsIterator

All Superinterfaces:
java.util.Iterator<ExchangeItem>

public interface ItemsIterator
extends java.util.Iterator<ExchangeItem>

Iterator over Exchange items.


Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 ExchangeItem next()
          Deprecated. use the method nextItem() instead.
 ExchangeItem nextItem()
           
 void remove()
          Deprecated. use the method ExchangeItem.delete(boolean) instead.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements.

Specified by:
hasNext in interface java.util.Iterator<ExchangeItem>
Returns:
true if the iterator has more elements.

next

ExchangeItem next()
Deprecated. use the method nextItem() instead.

Specified by:
next in interface java.util.Iterator<ExchangeItem>
Returns:
the next item in the iteration.
Throws:
java.util.NoSuchElementException - encapsulating a ExchangeServiceException if any errors occur during the communication with Exchange.
See Also:
nextItem()

remove

void remove()
Deprecated. use the method ExchangeItem.delete(boolean) instead.

This method always throws an UnsupportedOperationException as the remove operation is not supported by this iterator. To delete an item, use the method ExchangeItem.delete(boolean) instead.

Specified by:
remove in interface java.util.Iterator<ExchangeItem>
Throws:
java.lang.UnsupportedOperationException - always
See Also:
ExchangeItem.delete(boolean)

nextItem

ExchangeItem nextItem()
                      throws ExchangeServiceException
Returns:
the next item in the iteration.
Throws:
ExchangeServiceException - if any errors occur during the communication with Exchange.