class SubscriptionIterator extends Object implements Iterator<AddressBook>
Constructor and Description |
---|
SubscriptionIterator(List<Subscription> subscriptions,
long delay,
String proxyHost,
int proxyPort)
Construct a SubscriptionIterator using the Subscriprions in List subscriptions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
AddressBook |
next()
Yes, the EepGet fetch() is done in here in next().
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SubscriptionIterator(List<Subscription> subscriptions, long delay, String proxyHost, int proxyPort)
subscriptions
- List of Subscription objects that represent address books.delay
- the minimum delay since last fetched for the iterator to actually fetchproxyHost
- proxy hostnameproxyPort
- proxt port numberpublic boolean hasNext()
hasNext
in interface Iterator<AddressBook>
public AddressBook next()
next
in interface Iterator<AddressBook>
public void remove()
remove
in interface Iterator<AddressBook>