Iterator<AddressBook>class SubscriptionIterator extends Object implements Iterator<AddressBook>
| Constructor | Description |
|---|---|
SubscriptionIterator(List<Subscription> subscriptions,
long delay,
String proxyHost,
int proxyPort) |
Construct a SubscriptionIterator using the Subscriprions in List subscriptions.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
AddressBook |
next() |
Yes, the EepGet fetch() is done in here in next().
|
void |
remove() |
forEachRemainingpublic 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>