net.i2p.addressbook
Class SubscriptionIterator

java.lang.Object
  extended by net.i2p.addressbook.SubscriptionIterator
All Implemented Interfaces:
java.util.Iterator

public class SubscriptionIterator
extends java.lang.Object
implements java.util.Iterator

An iterator over the subscriptions in a SubscriptionList. Note that this iterator returns AddressBook objects, and not Subscription objects.

Author:
Ragnarok

Constructor Summary
SubscriptionIterator(java.util.List subscriptions, java.lang.String proxyHost, int proxyPort)
          Construct a SubscriptionIterator using the Subscriprions in List subscriptions.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionIterator

public SubscriptionIterator(java.util.List subscriptions,
                            java.lang.String proxyHost,
                            int proxyPort)
Construct a SubscriptionIterator using the Subscriprions in List subscriptions.

Parameters:
subscriptions - List of Subscription objects that represent address books.
proxyHost - proxy hostname
proxyPort - proxt port number
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator